Provide the text data (multi-languages)
Update master data automation
Edit translations/<locale>/<filename>.tsv
.
Don't edit files in master-data/
, these files are generated by program.
download:official-master-data
translate:gen-tsv
skills-ja_JP
, skills-zh_TW
, etc.download:translation-tsv
translate:tw2s
translate:gen-master-json
translate:gen-catalog-data
bundle:master-data
Download official master data (ja-JP) with current version.
yarn download:official-master-data
Convert the JSON of master data into .tsv files.
# locale: zh-TW, ja-JP
yarn translate:gen-tsv <locale>
Download translated .tsv files from cloud.
yarn download:translation-tsv
Translate translations/zh-TW/*
to translations/zh-CN/*
.
yarn translate:tw2s
Transform translated .tsv files to master data JSON.
yarn translate:gen-master-json
Transform translated detail.properties files to catalogs in Japanese.properties.
yarn translate:gen-catalog-data
Bundle all master data into bundles.compressed.json
, must use jsonpack
to uppack that.
yarn bundle:master-data