A tool to generate Cuba Platform's Traditional Chinese translation according to existing Simple Chinese translation using opencc4j, an open source java library which translate Simple Chinese to Traditional Chinse, Or vice versa.
opencc4j https://github.com/houbb/opencc4j
We need to clone two repositories.
git clone https://github.com/liangdefeng/cuba_translation.git
git clone https://github.com/cuba-platform/translations.git
Let's say we checkout the translation repository to #TRANSLATION_PATH#
Set cuba.platform.translation.content.path to the path of the content folder of the translations repository.
For example, I cloned the translation repository to C:\Users\defen\IdeaProjects\translations, the cuba.platform.translation.content.path I set is
C:\Users\defen\IdeaProjects\translations\content
After changing application.properties, run the commands below.
gradlew.bat bootRun
./gradlew bootRun
The traditional Chinese translation can be found in #TRANSLATION_PATH#/content/zh_HK folder.