Git-point: Get rid of react-native-i18n

Created on 23 Apr 2018  路  2Comments  路  Source: gitpoint/git-point

Once #777 is merged, react-native-i18n will become almost unused.

The only two things it's used for will be:

  • Retrieve the current locale (functionality provided by react-native-device-info)
  • Lookup translations strings (easily doable in t()

Getting rid of it would mean having 100% control about how our translations are handled in our code.

Opinions?



Most helpful comment

I'm also migrating from react-native-i18n to js-lingui. So far so good, albeit I use the i18n.t more than <Trans> components and it took me a while to set everything up (https://github.com/lingui/js-lingui/issues/176). Good luck.

All 2 comments

I'm also migrating from react-native-i18n to js-lingui. So far so good, albeit I use the i18n.t more than <Trans> components and it took me a while to set everything up (https://github.com/lingui/js-lingui/issues/176). Good luck.

@vonovak Good choice, it's an awesome lib! Actually there was a first PR to migrate to js-lingui as well (#747), but since it was too much to handle, we went for an intermediary home-made version to ease up the final migration :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JayBizzle picture JayBizzle  路  4Comments

umarmughal picture umarmughal  路  4Comments

jouderianjr picture jouderianjr  路  5Comments

alejandronanez picture alejandronanez  路  5Comments

machour picture machour  路  3Comments