You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

i18next-user-language-detector

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-user-language-detector

i18next plugin to detect and store user language for React Native Apps.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
0
Weekly downloads
 
Created
Source

i18next-user-language-detector

i18next plugin to detect and store user language for React Native Apps.

npm bundlephobia

Installation

npm install --save i18next-user-language-detector

OR

yarn add i18next-user-language-detector

OR

pnpm add i18next-user-language-detector

Usage

import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import LanguageDetector from "i18next-user-language-detector";

import en from "@/assets/locales/en";
import vi from "@/assets/locales/vi";

const resources = {
  en,
  vi,
};

i18n
  .use(LanguageDetector)
  .use(initReactI18next)
  .init({
    resources,
    supportedLngs: ["en", "vi"],
    fallbackLng: "en",

    interpolation: {
      escapeValue: false,
    },
  });

export default i18n;

License

This plugin is open-source and available under the MIT license.

Author

i18next-user-language-detector is developed by Thong Dang. You can contact me at thongdn.it@gmail.com.

If you like my project, you can support me or star (like) for it.

i18next-user-language-detector-buy-me-a-coffee

Keywords

i18next

FAQs

Package last updated on 19 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts