A lot of environments (browsers, Android) use one single locale setting both for selecting the language of the UI, and to format numbers, dates, times, etc.

If you select de-CH (for instance in Android N) you will get "German" strings (the Android translation is "generic German"), but Swiss dates / times / etc. For instance the numbers use apostrophe as thousand separator (like 1'234'567,89), the currency formatter will use CHF, and so on.

On Android before N you selected "German" from the language list, but the default locale set was de-DE ("German" without region was just a UI thing)

To track user settings: unfortunately, just "de" or "de-DE" is not a reliable signal, as not all systems allow for a region selection. But if you see something else (for instance en-CH), then it is more reliable.

You can also try to correlate with info from the IP address. If my setting says "de" and my IP address is in Austria, you might infer that in fact I prefer de-AT (not 100% reliable, but better than "de").

Answer from Mihai Nita on Stack Overflow
🌐
Wikipedia
en.wikipedia.org › wiki › List_of_ISO_639_language_codes
List of ISO 639 language codes - Wikipedia
1 week ago - This table lists all two-letter codes (set 1), one per language for ISO 639 macrolanguage, and some of the three-letter codes of the other sets, formerly parts 2 and 3.
🌐
Andiamo!
andiamo.co.uk › home › resources › iso language codes
ISO language codes | Andiamo! The Language Professionals
April 25, 2024 - Andiamo's list of ISO language codes. Find the two-letter language code for each country by scrolling through the list or typing it into the seach bar.
🌐
Python
python.org
Welcome to Python.org
Python is a programming language that lets you work quickly and integrate systems more effectively. Learn More · Join the official Python Developers Survey 2026 and have a chance to win a prize 📝🎁 Take the 2026 survey! Whether you're new to programming or an experienced developer, it's easy to learn and use Python. ... Python source code and installers are available for download for all versions!
🌐
LOC
loc.gov › standards › iso639-2 › php › langcodes-search.php
Codes for the representation of names of languages (Library of Congress)
Library of Congress >> Standards · ISO 639-1 Language Coding Agency Home - ISO 639-3 Language Coding Agency Home ISO 639-5 Language Coding Agency Home Other Standards Maintained by the Library - Library of Congress Home
🌐
SimpleLocalize
simplelocalize.io › data › locale-code › de-AT
Locale code: de-AT (German - Austria) | SimpleLocalize
March 1, 2024 - The locale code represents German language in Austria country.See all locale codes · Save time on handling localization files and translation strings.Try SimpleLocalize ... The currency used for the locale code de-AT is Euro.
🌐
Centus
centus.com › blog › iso-language-codes
ISO Country and Language Codes Explained + Examples
November 22, 2024 - Use the language codes: es or fr. Want to show prices specific to Canada or the United States? Use the country codes: CA or US. Want to deliver both country- and language-specific content to your French-speaking visitors in France and Canada?
Find elsewhere
🌐
Arduino
docs.arduino.cc › language-reference
Language Reference
Arduino programming language can be divided in three main parts: functions, values (variables and constants), and structure.
🌐
ISO
iso.org › obp › ui
DE (Deutschland)
You have to enable javascript in your browser to use an application built with Vaadin
🌐
R Project
r-project.org
R: The R Project for Statistical Computing
R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS. To download R, please choose your preferred CRAN mirror · If you have questions about R like how to download and install the software, or what ...
🌐
SimpleLocalize
simplelocalize.io › data › locale-code › de-BE
Locale code: de-BE (German - Belgium) | SimpleLocalize
March 1, 2024 - The locale code represents German language in Belgium country.See all locale codes · Save time on handling localization files and translation strings.Try SimpleLocalize ... The currency used for the locale code de-BE is Euro.
🌐
LOC
loc.gov › standards › iso639-2 › php › code_list.php
ISO 639-2 Language Code List - Codes for the representation of names of languages (Library of Congress)
January 15, 2026 - Library of Congress >> Standards · ISO 639-1 Language Coding Agency Home - ISO 639-3 Language Coding Agency Home ISO 639-5 Language Coding Agency Home Other Standards Maintained by the Library - Library of Congress Home
🌐
North Dakota Department of Public Instruction
nd.gov › dpi › sites › www › files › documents › STARS › layouts › Language.pdf pdf
LEP Heritage Language Codes
LEP Heritage Language Codes · ... (Other) 4090 · sit · Siouan languages · 4100 · sio · Skolt Sami · 4110 · sms · sms · Slave (Athapascan) 4120 · den ......
🌐
SimpleLocalize
simplelocalize.io › data › locale-code › de-DE
Locale code: de-DE (German - Germany) | SimpleLocalize
March 1, 2024 - For example, de_DE is a locale code for German language in Germany. Locale codes are used to define the language and country settings for date, time, currency, and number formatting.
🌐
Ttmem
ttmem.com › online-help › language-codes
TTMEM.com | ISO 639-1 Language Codes List
ISO 2 letter language codes reference for translators, localization professionals and CAT tool users. Find standardized language abbreviations used in translation memory systems, multilingual websites, localization workflows and translation software.
🌐
Slions
devlib.symbian.slions.net › s3 › GUID-31C133DE-F245-5992-9A41-20A99291E72A.html
Language Codes
The languages supported by PKG files correspond to the languages enumerated by TLanguage in e32lang.h.
🌐
Localizely
localizely.com › home › standards › iso 639-1 › de
Language code: de
The table below provides technical details for the German language, designated by the de code from the ISO 639-1 standard.