Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

neruchev/i18next-electron-language-detector

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Introduction

npm version dependencies peerDependencies downloads MIT License

This is an i18next language detection plugin which is used to determine user language in the Electron.js application by applying an app.getLocale() method.

Installation

Source can be loaded via npm.

# npm package
$ npm install i18next-electron-language-detector

Usage

import i18next from 'i18next'
import LanguageDetector from 'i18next-electron-language-detector';

i18next
  .use(LanguageDetector)
  .init()

Note: On Windows you have to call it after the ready events gets emitted.