{"_id":"@davotisolutions/expo-localization-utils","_rev":"4-b26868ad333d12acfdd957dc56c06da0","name":"@davotisolutions/expo-localization-utils","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"@davotisolutions/expo-localization-utils","version":"0.1.0","keywords":["react-native","expo","expo-localization-utils","ExpoLocalizationUtils"],"author":{"url":"andordavoti","name":"Andor Davoti","email":"andor.davoti@gmail.com"},"license":"MIT","_id":"@davotisolutions/expo-localization-utils@0.1.0","maintainers":[{"name":"andordavoti","email":"andor.davoti@gmail.com"}],"homepage":"https://github.com/andordavoti/expo-localization-utils#readme","bugs":{"url":"https://github.com/andordavoti/expo-localization-utils/issues"},"dist":{"shasum":"eb2825552de76b22cc3bb41178c88521e088b3cc","tarball":"https://registry.npmjs.org/@davotisolutions/expo-localization-utils/-/expo-localization-utils-0.1.0.tgz","fileCount":27,"integrity":"sha512-FSOr26KHWn0EQYSo/d0oE6Zf+odTuNj7po1La2SeElL48NUqnhNizuDv9rhvtMM0jWluiPIHQiJA2GqN1heqIQ==","signatures":[{"sig":"MEQCIEWsaQn8wKw9fHE5+WetNVDkHK1EvlwUfFmnFmYY3zDfAiBiVTQj6RHHG9v41QZOwZ8xdHAeriFP5J/NPhNfmKi2cw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15151},"main":"build/index.js","types":"build/index.d.ts","gitHead":"9ed57200de6e56a07cdccb7506d106f0c6ee56cf","private":false,"scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","open:ios":"xed example/ios","expo-module":"expo-module","open:android":"open -a \"Android Studio\" example/android","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"andordavoti","email":"andor.davoti@gmail.com"},"repository":{"url":"git+https://github.com/andordavoti/expo-localization-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"Expo Localization Utils","directories":{},"_nodeVersion":"23.7.0","dependencies":{},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"expo":"~52.0.0","@types/react":"~18.3.12","react-native":"0.76.0","expo-module-scripts":"^4.0.3"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/expo-localization-utils_0.1.0_1740996718665_0.7227331737080342","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@davotisolutions/expo-localization-utils","version":"0.1.1","keywords":["react-native","expo","expo-localization-utils","ExpoLocalizationUtils"],"author":{"url":"andordavoti","name":"Andor Davoti","email":"andor.davoti@gmail.com"},"license":"MIT","_id":"@davotisolutions/expo-localization-utils@0.1.1","maintainers":[{"name":"andordavoti","email":"andor.davoti@gmail.com"}],"homepage":"https://github.com/andordavoti/expo-localization-utils#readme","bugs":{"url":"https://github.com/andordavoti/expo-localization-utils/issues"},"dist":{"shasum":"ce20f705932c6c5c002f7902a39678bc203bb50d","tarball":"https://registry.npmjs.org/@davotisolutions/expo-localization-utils/-/expo-localization-utils-0.1.1.tgz","fileCount":27,"integrity":"sha512-l5BPIFZ4xIHJGAO+LZN5K/pXMovgWYcaJPYiC5uuSCEGm5aWjhCZ1sw7pdiXKJ2K8ncsGOnkRXb/x3qFa8qC2w==","signatures":[{"sig":"MEUCIQDnxiZPUeW/dWKhlvjyGbqxNZSZL4CHlERiQrlpX3r1/gIgOYiiHJoai0TAPqqk3dxqYCdq6Gh9awW6KV/O0lJfu28=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16441},"main":"build/index.js","types":"build/index.d.ts","gitHead":"b97d41810f7ad68a50fb67cd7cbb4dd355c28873","private":false,"scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","open:ios":"xed example/ios","expo-module":"expo-module","open:android":"open -a \"Android Studio\" example/android","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"andordavoti","email":"andor.davoti@gmail.com"},"repository":{"url":"git+https://github.com/andordavoti/expo-localization-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"Expo Localization Utils","directories":{},"_nodeVersion":"23.7.0","dependencies":{},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"expo":"~52.0.0","@types/react":"~18.3.12","react-native":"0.76.0","expo-module-scripts":"^4.0.3"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/expo-localization-utils_0.1.1_1741004010387_0.3629302629508824","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@davotisolutions/expo-localization-utils","version":"0.1.2","keywords":["react-native","expo","expo-localization-utils","ExpoLocalizationUtils"],"author":{"url":"andordavoti","name":"Andor Davoti","email":"andor.davoti@gmail.com"},"license":"MIT","_id":"@davotisolutions/expo-localization-utils@0.1.2","maintainers":[{"name":"andordavoti","email":"andor.davoti@gmail.com"}],"homepage":"https://github.com/andordavoti/expo-localization-utils#readme","bugs":{"url":"https://github.com/andordavoti/expo-localization-utils/issues"},"dist":{"shasum":"347a5a0170a758c31580155a5a7612f420894587","tarball":"https://registry.npmjs.org/@davotisolutions/expo-localization-utils/-/expo-localization-utils-0.1.2.tgz","fileCount":27,"integrity":"sha512-Io7v7VpzBbf3gUth0VIi851WRMpq2mfoKnSeL8Fhq2u7HD+g8PYkVK0cfNo/Q2I7y5tSGOcUNVFA6Ug+5cHq/w==","signatures":[{"sig":"MEUCIFgWNbqgfZT64KEe7AxVwqrNAYb/Vi7gJgE+K5oZ+6oYAiEA40FV0HEkqbz/m0pjK74AR3bWnZs9Hh113TZvzoqy3Ns=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16471},"main":"build/index.js","types":"build/index.d.ts","gitHead":"d672bf75b7687f32b22eaca0b3efec50016a6bc7","private":false,"scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","open:ios":"xed example/ios","expo-module":"expo-module","open:android":"open -a \"Android Studio\" example/android","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"andordavoti","email":"andor.davoti@gmail.com"},"repository":{"url":"git+https://github.com/andordavoti/expo-localization-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"Expo Localization Utils","directories":{},"_nodeVersion":"23.7.0","dependencies":{},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"expo":"~52.0.0","@types/react":"~18.3.12","react-native":"0.76.0","expo-module-scripts":"^4.0.3"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/expo-localization-utils_0.1.2_1741004086827_0.8072928913165911","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@davotisolutions/expo-localization-utils","version":"0.1.3","keywords":["react-native","expo","expo-localization-utils","ExpoLocalizationUtils"],"author":{"url":"andordavoti","name":"Andor Davoti","email":"andor.davoti@gmail.com"},"license":"MIT","_id":"@davotisolutions/expo-localization-utils@0.1.3","maintainers":[{"name":"andordavoti","email":"andor.davoti@gmail.com"}],"homepage":"https://github.com/andordavoti/expo-localization-utils#readme","bugs":{"url":"https://github.com/andordavoti/expo-localization-utils/issues"},"dist":{"shasum":"aa31bdf872cda0affcbab769461a4118e74db0c7","tarball":"https://registry.npmjs.org/@davotisolutions/expo-localization-utils/-/expo-localization-utils-0.1.3.tgz","fileCount":27,"integrity":"sha512-KsZ4SfaLSneacm8y03D2RDPrEzrD3+pEtB/fX30u8Hn6RoWb9EYrjFdTP5gbOXpOo1r5fHELgtZP3A/F3APjmQ==","signatures":[{"sig":"MEUCID7QPdoeAiBkUK6hZ/t7k9QGEN4gYNdft42YLF5nDuqnAiEA5isgzM1VC2SE6YugL1pUodf2nT2DxkH7HwcYnGy7Uds=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15811},"main":"build/index.js","types":"build/index.d.ts","gitHead":"78803398909efe515d22f8a32f8cf28dc5b8a50e","private":false,"scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","open:ios":"xed example/ios","expo-module":"expo-module","open:android":"open -a \"Android Studio\" example/android","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"andordavoti","email":"andor.davoti@gmail.com"},"repository":{"url":"git+https://github.com/andordavoti/expo-localization-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"Expo Localization Utils","directories":{},"_nodeVersion":"23.7.0","dependencies":{},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"expo":"~52.0.0","@types/react":"~18.3.12","react-native":"0.76.0","expo-module-scripts":"^4.0.3"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/expo-localization-utils_0.1.3_1741010409729_0.7212774499086678","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@davotisolutions/expo-localization-utils","version":"0.1.4","private":false,"description":"Expo Localization Utils","main":"build/index.js","types":"build/index.d.ts","scripts":{"build":"expo-module build","clean":"expo-module clean","lint":"expo-module lint","test":"expo-module test","prepare":"expo-module prepare","prepublishOnly":"expo-module prepublishOnly","expo-module":"expo-module","open:ios":"xed example/ios","open:android":"open -a \"Android Studio\" example/android"},"keywords":["react-native","expo","expo-localization-utils","ExpoLocalizationUtils"],"repository":{"type":"git","url":"git+https://github.com/andordavoti/expo-localization-utils.git"},"bugs":{"url":"https://github.com/andordavoti/expo-localization-utils/issues"},"author":{"name":"Andor Davoti","email":"andor.davoti@gmail.com","url":"andordavoti"},"license":"MIT","homepage":"https://github.com/andordavoti/expo-localization-utils#readme","dependencies":{},"devDependencies":{"@types/react":"~18.3.12","expo-module-scripts":"^4.0.3","expo":"~52.0.0","react-native":"0.76.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","_id":"@davotisolutions/expo-localization-utils@0.1.4","gitHead":"3ca880143c8e112e7afe3cfc1289c42c0511a095","_nodeVersion":"23.7.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-NgprIRn6yIvyVRcj58dzuhw7ydA7W+/BwIs6U9FPb8ce0xsMvSs9VUGn8X6jHyLuEaAcCJpFIJoNmccWCD0lbQ==","shasum":"0dae65a7f24f2415d19d0d7943272f9bf0326f60","tarball":"https://registry.npmjs.org/@davotisolutions/expo-localization-utils/-/expo-localization-utils-0.1.4.tgz","fileCount":27,"unpackedSize":15850,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH/8qpYE0DSJFaSjBYSHW7SdL8hwXrU6hJd5jesY/QygAiEA6BOXXgjo1hG6f7h3ptVGOE8pIzCeIOhWXmDp3mblc1c="}]},"_npmUser":{"name":"andordavoti","email":"andor.davoti@gmail.com"},"directories":{},"maintainers":[{"name":"andordavoti","email":"andor.davoti@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/expo-localization-utils_0.1.4_1741010764485_0.4352858498737442"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-03T10:11:58.549Z","modified":"2025-03-03T14:06:04.920Z","0.1.0":"2025-03-03T10:11:58.837Z","0.1.1":"2025-03-03T12:13:30.592Z","0.1.2":"2025-03-03T12:14:47.036Z","0.1.3":"2025-03-03T14:00:09.894Z","0.1.4":"2025-03-03T14:06:04.701Z"},"bugs":{"url":"https://github.com/andordavoti/expo-localization-utils/issues"},"author":{"name":"Andor Davoti","email":"andor.davoti@gmail.com","url":"andordavoti"},"license":"MIT","homepage":"https://github.com/andordavoti/expo-localization-utils#readme","keywords":["react-native","expo","expo-localization-utils","ExpoLocalizationUtils"],"repository":{"type":"git","url":"git+https://github.com/andordavoti/expo-localization-utils.git"},"description":"Expo Localization Utils","maintainers":[{"name":"andordavoti","email":"andor.davoti@gmail.com"}],"readme":"# @davotisolutions/expo-localization-utils\n\n@davotisolutions/expo-localization-utils is a set of utilities for working with localization in Expo projects. It provides a set of methods to interact with the native localization settings of the device, such as opening the native app language settings screen on Android and adding supported locales to the Android native project with the config plugin.\n\n## Installation\n\n### Managed Expo projects\n\nFor [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](#api-documentation). If you follow the link and there is no documentation available, then this library is not yet usable within managed projects &mdash; it is likely to be included in an upcoming Expo SDK release.\n\n### Bare React Native projects\n\nFor bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.\n\n#### Add the package to your npm dependencies\n\n```sh\nnpm install @davotisolutions/expo-localization-utils\n```\n\n#### Expo Prebuild\n\n```sh\nnpx expo prebuild --clean\n```\n\n## Open app localization settings\n\nImport the module and use it in your project:\n\n```typescript\nimport ExpoLocalizationUtils from \"@davotisolutions/expo-localization-utils\";\n\n// Example usage\nExpoLocalizationUtils.openNativeAppLanguageSettings();\n```\n\nOn Android, this will open the native app language settings screen for your app.\n\nOn iOS, it will open the native settings for your app, as there is no way to open the language settings directly for an app.\n\n## Add supported locales\n\n### Android\n\nIn the app.json or app.config.js file, add the supported locales to the plugin:\n\n```json\n{\n  \"expo\": {\n    ... // other configuration\n    \"plugins\": [\n      [\n        \"@davotisolutions/expo-localization-utils\",\n        {\n          \"locales\": [\"en\", \"nb\"]\n        }\n      ]\n    ]\n  }\n}\n```\n\nThe `locales` array should contain the locales that the app supports. The locales should be in the format of https://developer.android.com/guide/topics/resources/app-languages#sample-config\n\n### iOS\n\nThis library isn't needed for adding supported locales to iOS projects, as this can added directly to the expo.ios.infoPlist in the app.json or app.config.js file:\n\n```json\n{\n  \"expo\": {\n    ... // other configuration\n    \"ios\": {\n      ... // other configuration\n      \"infoPlist\": {\n        \"CFBundleLocalizations\": [\"no\", \"en\"]\n      }\n    },\n  }\n}\n```\n\n## Example\n\nThere is an example project in the `example` directory, which is a Expo project that demonstrates how to use the library. As well as providing a proposal for how to structure your project to support localization with Expo Localization with i18next.\n\nYou can read more about the example project in the [README](example/README.md).\n\n## Contributing\n\nContributions are very welcome! Submit a pull request on the GitHub repository to propose changes.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}