+1 vote

How do I get the OS (i.e. Android) language ?

in Engine by (177 points)

3 Answers

+2 votes
Best answer

OS.get_locale() may be what you are looking for.

by (7,900 points)
selected by

Thx it worked !
I don't know why it's called like that btw :/

It's called "locale" because it refers to a set of region-specific parameters; see the Wikipedia page on locales.

–1 vote

You would use OS.get_name(). See here.

by (1,581 points)

Sry my question wasn't precise. I asked for the languages like english french spanish etc...

0 votes


is going to return the general language, en instead of en-GB or en-US.

If you want to be region-specific, just use the OS.get_locale().

Godot 3.5

by (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.