chinese_english_dictionary 0.6.0+1 copy "chinese_english_dictionary: ^0.6.0+1" to clipboard
chinese_english_dictionary: ^0.6.0+1 copied to clipboard

A traditional Chinese-English dictionary based on CC-CEDICT.

Chinese-English Dictionary #

pub package

A Chinese-English dictionary based on CC-CEDICT.

Features #

  • Translates traditional Chinese to English.

Usage #

A simple usage example:

import 'package:chinese_english_dictionary/chinese_english_dictionary.dart';

void main() async {
  final d = ChineseEnglishDictionary();
  final translation = await d.translateTraditional('石');
  print(translation);
}

Prints out:

[rock, stone, stone inscription, one of the eight categories of ancient musical instruments 八音[ba1 yin1]]

Developer notes #

To update the dictionary, download the latest version from https://www.mdbg.net/chinese/dictionary?page=cc-cedict and copy/paste the dictionary into cedict_ts.u8.dart.