# How can I make an Ionic application auto change it language based on user device settings

**URL:** <https://forum.ionicframework.com/t/how-can-i-make-an-ionic-application-auto-change-it-language-based-on-user-device-settings/211937>\
**Category:** Ionic Framework\
**Created:** [July 2, 2021, 5:46am UTC](https://forum.ionicframework.com/t/how-can-i-make-an-ionic-application-auto-change-it-language-based-on-user-device-settings/211937 "2021-07-02T05:46:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrostyMint](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/frostymint/32/138265_2.png) [@FrostyMint](https://forum.ionicframework.com/u/FrostyMint)\
**Post date:** [July 2, 2021, 5:46am UTC](https://forum.ionicframework.com/t/how-can-i-make-an-ionic-application-auto-change-it-language-based-on-user-device-settings/211937/1 "2021-07-02T05:46:37Z")

</div>

I want to create an Ionic Project where the ionic application’s language on both iOS and android device will auto change to the language based on the user device where they have choose their prefer language in the settings during set-up their phone.

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [July 2, 2021, 6:55pm UTC](https://forum.ionicframework.com/t/how-can-i-make-an-ionic-application-auto-change-it-language-based-on-user-device-settings/211937/2 "2021-07-02T18:55:56Z")

</div>

Then you want to read [the Capacitor documentation involving `getLanguageCode`](https://capacitorjs.com/docs/apis/device#getlanguagecode).
