Skip to content

NPM version: can't change the language to non-English #290

Open

Description

@01Kuzma

HI!
In react.js I've this configuration:

    componentDidMount() {
        let lang;
        if (i18n.language=='en') 
            lang = 'en'
            else   
                lang = 'lt'
        console.log(lang);
        let outdatedBrowser = require("exports-loader?outdatedBrowser!outdated-browser/outdatedbrowser/outdatedbrowser.js")


        outdatedBrowser({
          bgColor: '#f25648',
          color: '#ffffff',
          lowerThan: 'borderImage',          
          languagePath: `node_modules/outdatedbrowser/outdatedbrowser/lang/${lang}.html`
        }); 
}

But message is always in English, while the default lang is lt. I've even removed all files from lang directory but message is still in English...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions