A library use for:

Replace all zh_TW character to zh_CN character

Replace all zh_CN character to zh_TW character

(简体/繁體 字符互換)


A simple usage example:

import 'package:zh_char_converter/zh_char_converter.dart';

main() {
  String testString = '两岸猿声啼不住,輕舟已過萬重山。 Li Bai,courtesy name Taibai.';
  String cn = zhCN(testString);
  print('zh_CN: $cn');
  String tw = zhTW(testString);
  print('zh_TW: $tw');

Features and bugs

Please file feature requests and bugs at the issue tracker.


Replace chinese character directly without third party API 直接 中文繁簡替換, 無需第三方API