# Get device language

**URL:** <https://forum.ionicframework.com/t/get-device-language/47158>\
**Category:** ionic-v3\
**Created:** [March 22, 2016, 11:49am UTC](https://forum.ionicframework.com/t/get-device-language/47158 "2016-03-22T11:49:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbakker1996](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mbakker1996/32/96698_2.png) [@mbakker1996](https://forum.ionicframework.com/u/mbakker1996)\
**Post date:** [March 22, 2016, 11:49am UTC](https://forum.ionicframework.com/t/get-device-language/47158/1 "2016-03-22T11:49:33Z")

</div>

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:

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

```

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [March 22, 2016, 7:05pm UTC](https://forum.ionicframework.com/t/get-device-language/47158/2 "2016-03-22T19:05:01Z")

</div>

You can use the geolocation plugin to retrieve this information

> **[apache/cordova-plugin-globalization](https://github.com/apache/cordova-plugin-globalization)**
>
> cordova-plugin-globalization - Mirror of Apache Cordova Plugin globalization
