Get device language


#1

Hi,

How do I get the device language with ionic 2?

I use ng2-translate to translate everything.

now I do it hardcoded but i wan that he does it automatic:

    initializeTranslateServiceConfig(): void {
            this.translate.setDefaultLang('nl');
            this.translate.use('nl');
        }

#2

You can use the geolocation plugin to retrieve this information