View profile

#12 Multi-language support in React Native apps and more

Aman Mittal
Aman Mittal
👋 Hello, dev!
Another month has gone by. Can you believe, it is only 4.5 months to 2022?!
✍️ New Posts
Published a new post to go through the process of adding multi-language support to a React Native app using i18next and persist the state of language changed with AsyncStorage.
I18next is an internationalization framework written in and for JavaScript that provides a complete solution for localizing your product from web to mobile and desktop.
The post demonstrates how to use the following libraries to achieve the functionality:
  • i18next: As previously mentioned, this is our internationalization library.
  • react-i18next: This library provides bindings for React and React Native projects using Hooks, High Order Components (HOCs), etc. We will use the useTranslation hook to translate the text within our React Native function components.
  • react-native-localize: This library provides helper functions based on the device’s localized language preferences.
  • @react-native-async-storage/async-storage: This is an unencrypted, asynchronous, persistent, key-value storage system that is global to the app. It is used to store the user’s language preference so that it remains constant even when the app restarts.
More posts:
Did you enjoy this issue? Yes No
Aman Mittal
Aman Mittal @amanhimself

⚛️ I write about Node.js, React, React Native, and Expo and share them via this newsletter.

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Created with Revue by Twitter.