- use
react-i18next
link - json excel list link
- i18n tranlation json path :
public/locales/{ln}/translation.json
- i18n HOC : use
withTranslation
insteadimport {...} from 'i18n'
https://github.com/hashgreen/uat-swap-ldp/blob/04518cdbb1d848b177f04403e833400ada1c37b9/src/components/common/LearnMore.tsx#L36 extends the typeWithTranslation
so it can get the i18n function liket
ori18n
https://github.com/hashgreen/uat-swap-ldp/blob/04518cdbb1d848b177f04403e833400ada1c37b9/src/components/common/LearnMore.tsx#L6-L13
- HashgreenSwap project link
yarn
yarn dev
- Use Vite Deploy to GitHub Pages function ref
./deplpy.sh
參考 [Doc] Services & Deployments
- 開發 repo: github.com/hashgreen/pyke-ldp
- UAT GH pages repo: github.com/hashgreen/uat-swap-ldp.hashgreen.github.io
- PROD GH pages repo: github.com/hashgreen/swap-ldp.hashgreen.github.io