react-native-template icon indicating copy to clipboard operation
react-native-template copied to clipboard

Add in Localization

Open code-jenn-or opened this issue 6 years ago • 3 comments

This library looks promising: https://github.com/react-native-community/react-native-localize

But determine how we can help scaffold this out.

code-jenn-or avatar Nov 06 '19 15:11 code-jenn-or

From @cball

I’ve heard react-native-localize and i18n-js are the tried and true combo (theres an example in the react-native-localize github. this blog takes a slightly different approach, but either way it would be great to 1) nail down what to use and 2) implement it

big wins imo:

  • we write it the same way if other languages are required or not
  • better testing (we don’t test exact strings)
  • additional language support should be pretty easy to add in

jsjoeio avatar Nov 20 '19 14:11 jsjoeio

Good reference shared by @rynatk: https://blog.codecentric.de/en/2019/11/localization-react-native-mobile-app-react-context-hooks/

jsjoeio avatar Nov 20 '19 14:11 jsjoeio

Consider implementing react-native-localize and i18n-js

jsjoeio avatar Nov 20 '19 14:11 jsjoeio