Skip to content

Accepted languages should use id and he on Android

In !1017 (merged) two days ago I used the language tags generated by Java.

Then yesterday I learned that Java uses deprecated tags (iw, in and ji for he, id and yi).

However, Thorin was the one who thought of this problem and made me realize my patch was partially wrong.

Anyway, it seems I used the wrong function: toString() instead of toLanguageTag(). The latter should do the correct conversion:

This behavior is designed to support debugging and to be compatible with previous uses of toString that expected language, country, and variant fields only. To represent a Locale as a String for interchange purposes, use toLanguageTag().

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information