Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
01Kuzma opened this issue Feb 21, 2018 · 0 comments
Open

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

01Kuzma opened this issue Feb 21, 2018 · 0 comments

Comments

@01Kuzma
Copy link

01Kuzma commented Feb 21, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant