Convert a simplified Chinese (简体) string to a traditional Chinese (繁體) array of string(s), or inverse.
composer require horaceho/tradize
简 → 繁
app('tradize')->convert('陈艳丽');
=> [
"陳豔麗",
"陳艷麗",
]
app('tradize')->convert('张小华');
=> [
"張小華",
]
繁 → 简
app('tradize')->invert('陳艷麗');
=> [
"陈艳丽",
]
composer test
BYVoid/OpenCC for data/dictionary/STCharacters.txt
and data/dictionary/TSCharacters.txt
.
The MIT License (MIT)