{"repo":"jakex7/react-native-localization-settings","free":true,"listed":false,"github":"https://github.com/jakex7/react-native-localization-settings","clone":"git clone https://github.com/jakex7/react-native-localization-settings.git","description":"React Native module to expose per-app language preferences API on iOS and Android.","language":"Kotlin","stars":114,"topics":["react-native","i18n","i18next","i18n-react","l10n","language","per-app","hacktoberfest"],"license":"MIT","category":"mobile-apps","readme_excerpt":"React Native Localization Settings react-native-localization-settings is a native module to expose per-app language preferences API on iOS and Android. Supported platforms Platform Supported ---------- :---------: iOS ✅ Android ✅ per-app language settings was introduced in API level 33 (Android 13). On the older versions, the library uses SharedPreferences to store the language. Installation To get started with react-native-localization-settings , you'll need to install it using npm: or with yarn: Setup To get started, define the languages your app will support. If you're using Expo, you can leverage the Expo config plugin to generate the necessary native configurations. Expo Simply add the config plugin to your app.json file and specify the list of supported languages: and run npx expo prebuild . Bare react-native app If your app isn’t using Expo, you’ll need to add the configuration manually. iOS configuration Open your project in XCode, in Project Navigator select project, go to Info tab, and under Localizations section add languages you want to support. Next, you need to create a Localization.strings file. Select newly created file and on the right side of the screen, under Localizations selection press Localize . Confirm the popup. Lastly, you need to select all elements in the section form previous step. Android configuration Create new file in android/app/src/main/res/xml directory named locales config.xml . and define supported languages: Then, open android/app/src/ma","default_branch":null,"files":null,"tree":[],"storefront":"/r/jakex7","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jakex7/react-native-localization-settings/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}