Questions tagged [react-native-localize]
8 questions
6
votes
2 answers
How to resolve a NativeModule.RNLocalize is null error in test?
I'm using the package react-native-localize to provide localization in an app. I've already linked the library and it works fine running on a device.
Issue:
When I test a component that imports react-native-localize. I get the error…

Brian Var
- 6,029
- 25
- 114
- 212
4
votes
0 answers
changing the language of react native app does not change the language for already opened routes
if i change the language from my setting screen inside my app, it does not change the language for already opened routes in my application. the language change is only reflect on unopened routes. i used react-native-localize and i18n-js. Given below…

melaku
- 89
- 2
- 11
3
votes
1 answer
i18n won't translate correctly when inside array or object in React Native
I'm trying to use i18n-js to translate some strings into other languages. If I have my code in normal code, it works. Ex:
//Displays "Something" (no quotes) where I want it
translate("Something");
But if I put it inside an array or…

Amber Fisher
- 63
- 6
2
votes
1 answer
How to fix NativeModule.RNLocalize is null?
I am using react-native-localization library is my RN project.
My RN version is 0.59.4
I already get the project to work on android as expected, but the problem is with the IOS build.
I npm installed both react-native-localization and…

Amine
- 2,241
- 2
- 19
- 41
2
votes
1 answer
How can i restart app when i change language in react native
I tried to create a picker that is used to change language. But some texts remain untranslated even if user selects different language. i tried
import * as RNLocalize from 'react-native-localize';
import I18n from 'i18n-js';
import memoize from…

melaku
- 89
- 2
- 11
1
vote
2 answers
How to make react native app save the selected language when i restart the app
I want my app contain a setting screen so that i can change the language from the picker. I want language change is reflected on the whole app and i want the app to remember last selected language. Given below my index.js that import my key value…

melaku
- 89
- 2
- 11
0
votes
1 answer
Get lookup of languages from language tags in React Native
I get a list of languagetags and need to convert them to display languages for all possible variations. For example:
input List: [en, it]
output List: [english, italian]
explanation:
tag: 'en' corresponds to display: 'english'
tag: 'it'…

blarredflunky
- 1
- 1
0
votes
1 answer
React Native - TypeError: undefined is not an object
React Native version 0.62. I am a bit noob in React Native and I am trying to set up react-native-localize as per this guide https://heartbeat.fritz.ai/how-to-use-react-native-localize-in-react-native-apps-3bb3d510f801 but when I change language and…

Michele Di Chio
- 3
- 1
- 2