Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / GetDeviceLanguage() - List of possible values?

Author
Message
MucMac
Developer
9
Years of Service
User Offline
Joined: 13th Sep 2015
Location: Munich, Germany
Posted: 19th Feb 2023 14:11
Hi!

I want to make my game language sensitive by default. Is there a full list of returned values from this function?

On Windows/Android i get "de" - but on ios i get "de-DE" - what is the correct value for austria on ios? "at-AT" or "at-DE" ?
A full list of returned values would be precious.

Thanks!
--
Mac
Lead Programmer
MucMac
Developer
9
Years of Service
User Offline
Joined: 13th Sep 2015
Location: Munich, Germany
Posted: 16th Oct 2024 20:59
GetDeviceLanguage returns "HA" as country code. Which country is this?
I cannot find a country code HA in the ISO tables. Any hints?
--
Mac
Lead Programmer
Virtual Nomad
Moderator
19
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 16th Oct 2024 22:07 Edited at: 16th Oct 2024 22:15
Quote: "Which country is this?"

it should return the language, not country.

and, i'm seeing Hausa?

see the alpha-2/ISO 639-1 column @ https://www.loc.gov/standards/iso639-2/php/code_list.php

Login to post a reply

Server time is: 2025-05-09 01:32:46
Your offset time is: 2025-05-09 01:32:46