npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@davotisolutions/expo-localization-utils

v0.1.4

Published

Expo Localization Utils

Downloads

16

Readme

@davotisolutions/expo-localization-utils

@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.

Installation

Managed Expo projects

For managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release. If you follow the link and there is no documentation available, then this library is not yet usable within managed projects — it is likely to be included in an upcoming Expo SDK release.

Bare React Native projects

For bare React Native projects, you must ensure that you have installed and configured the expo package before continuing.

Add the package to your npm dependencies

npm install @davotisolutions/expo-localization-utils

Expo Prebuild

npx expo prebuild --clean

Open app localization settings

Import the module and use it in your project:

import ExpoLocalizationUtils from "@davotisolutions/expo-localization-utils";

// Example usage
ExpoLocalizationUtils.openNativeAppLanguageSettings();

On Android, this will open the native app language settings screen for your app.

On iOS, it will open the native settings for your app, as there is no way to open the language settings directly for an app.

Add supported locales

Android

In the app.json or app.config.js file, add the supported locales to the plugin:

{
  "expo": {
    ... // other configuration
    "plugins": [
      [
        "@davotisolutions/expo-localization-utils",
        {
          "locales": ["en", "nb"]
        }
      ]
    ]
  }
}

The 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

iOS

This 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:

{
  "expo": {
    ... // other configuration
    "ios": {
      ... // other configuration
      "infoPlist": {
        "CFBundleLocalizations": ["no", "en"]
      }
    },
  }
}

Example

There 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.

You can read more about the example project in the README.

Contributing

Contributions are very welcome! Submit a pull request on the GitHub repository to propose changes.

License

MIT