Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

how to do translation things? #186

Open
timmyz opened this issue Apr 25, 2019 · 1 comment
Open

how to do translation things? #186

timmyz opened this issue Apr 25, 2019 · 1 comment

Comments

@timmyz
Copy link

timmyz commented Apr 25, 2019

i noticed it use i18n framework, but i didn't find definition files for different translation key-value pairs.
i captured the network activities when the page loading, found that it made some translation calls to https://api.locize.io, which seem to be an enterprise level service.
image

so how can i change the translation of a label?

@wuyuyue
Copy link

wuyuyue commented Apr 26, 2019

normally you could fork and remove react-i18n online-service yourself and maintain local language json files.
which are basically as follow steps:

  1. remove i18n script in src/template/index.html
    image

  2. edit src/config/i18n.ts,add your own language label
    image

  3. run and see the result
    image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants