Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 621 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 621 Bytes

Soha's Personal Home Page

For English please visit sohaj.in, 中文请访问 jin.sh.

How to compile

For example, compile for Chinese:

yarn install
COMPILE_LANG=zh NODE_ENV=production yarn build

How to use i18n

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/ .