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

Is there a quick way of removing the i18n from this module... #32

Open
dawityifter opened this issue Jan 18, 2017 · 1 comment
Open

Comments

@dawityifter
Copy link

I am facing some issue with angular-translate module during config of the module and I really do not care for translation to other languages. Is there a quick way of excluding the internationalization?

@vangorra
Copy link

The module seems to heavily integration with angular translations. While you would have trouble removing the dependency on the translate module entirely, I have found a way to force my resulting module to use a single translation.

angular.module(...)
    .config(function($translateProvider: angular.translate.ITranslateProvider){
        $translateProvider.translations('en', require('angular-surveys/dist/i18n/en/angular-surveys.json'));
        $translateProvider.preferredLanguage('en');
    })
...

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

2 participants