citahub / microscope

Blockchain Explorer for CITA
https://microscope.cryptape.com/
MIT License
17 stars 15 forks source link

how to do translation things? #186

Open timmyz opened 5 years ago

timmyz commented 5 years ago

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 commented 5 years ago

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