Skip to main content

Introduce

  • Translate file content from Traditional Chinese to Simplified Chinese.
  • 翻译文件中的繁体中文到简体中文。
  • 翻譯文件中的繁體中文到簡體中文。

Import

import { convert } from 'https://deno.land/x/tw2cn/@v0.0.1/index.ts';

Usage1

::deno run --allow-run --allow-read --allow-write https://deno.land/x/tw2cn/@v0.0.1/index.ts ~sourceFilename~ ~goalFilename~
deno run --allow-run --allow-read --allow-write https://deno.land/x/tw2cn/@v0.0.1/index.ts zh_tw.txt zh_cn.txt

Usage2

import { convert } from 'https://deno.land/x/tw2cn/@v0.0.1/index.ts';
// convert(~sourceFilename1~, ~goalFilename1~);
convert('zh_tw.txt', 'zh_cn.txt');

This

typescript

github: https://github.com/anqisoft/ts_deno_tw2cn
deno: https://deno.land/x/tw2cn

javascript

github: https://github.com/anqisoft/js_node_tw2cn
npmjs: https://www.npmjs.com/package/@dishanqian/tw2cn

Base

typescript

github: https://github.com/anqisoft/ts_cn_and_tw
deno: https://deno.land/x/cn_and_tw

javascript

github: https://github.com/anqisoft/js_cn_and_tw
npmjs: https://www.npmjs.com/package/@dishanqian/cn_and_tw

Sibling

typescript

github: https://github.com/anqisoft/ts_deno_cn2tw
deno: https://deno.land/x/cn2tw

javascript

github: https://github.com/anqisoft/js_node_cn2tw
npmjs: https://www.npmjs.com/package/@dishanqian/cn2tw