Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@os-team/i18next-tld-language-detector

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@os-team/i18next-tld-language-detector

The i18next language detector, which is used to detect the user's language by a top-level domain (TLD).

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@os-team/i18next-tld-language-detector NPM version BundlePhobia

The i18next language detector, which is used to detect the user's language by a top-level domain (TLD).

Usage

Install the package using the following command:

yarn add @os-team/i18next-tld-language-detector

If you use next-i18next, add the language detector to the customDetectors and include the tld detector to detection.order.

import NextI18Next from 'next-i18next';
import path from 'path';
import tldLanguageDetector from 'libs/utils/packages/i18next-tld-language-detector/src/index';

const i18Next = new NextI18Next({
  defaultLanguage: 'en',
  otherLanguages: ['ru'],
  localePath: path.resolve('./public/static/locales'),
  fallbackLng: false,
  customDetectors: [tldLanguageDetector],
  detection: {
    order: ['tld'],
  },
});

FAQs

Package last updated on 02 Mar 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc