For English please visit sohaj.in, 中文请访问 jin.sh.
For example, compile for Chinese:
yarn install
COMPILE_LANG=zh NODE_ENV=production yarn build
Run yarn build i18n:extract
, and languages defined in config.langsKeyToGenerate
in gulpfile.js will be updated to ./i18n/
. This operation will not discard the old translations.
After translated strings in the i18n folder, run yarn build
with environment variable COMPILE_LANG
will generate the compiled HTML in ./dist/
.