Photo by lucas Favre on Unsplash

What to notes.

Photo by Ali Choubin on Unsplash
yarn run start

Only start website with default language.

If you want to run lively with different language, choose

yarn run start -- --locale vi

Change nginx.conf if needed, for example all the docs file are named index.html inside the directory, so we need to rewrite url by nginx.

server {listen 80;set $subdomain $1;location / {root   /usr/share/nginx/html;index  docs/intro/index.html;rewrite /$ "$subdomain${uri}index.html" break;try_files $uri $uri/ $uri.html /index.html;}error_page   500 502 503 504  /50x.html;location = /50x.html {root   /usr/share/nginx/html;}}

Put translation files in i18n/{language}

For example

├── en
└── vi…

Photo by Tim Hüfner on Unsplash

Photo by Nathan Dumlao on Unsplash

Donald Le

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store