1

I want to add Serbian Latin, Serbia language to my android app. However I am not able to figure out what should be name of values folder. I tried values-sr-rRS-Latn but Android studio gave error.

I also referred to other thread with similar topic but it did not help.

What is the list of supported languages/locales on Android?

How to include 2 variants of Serbian Language? with Latin letters and with Cyrillic letters

Android localization values-** folder names

Community
  • 1
  • 1
  • check [this](http://stackoverflow.com/questions/7973023/what-is-the-list-of-supported-languages-locales-on-android) for more detailed supported language in Android – Chintan Rathod Sep 11 '15 at 12:44

2 Answers2

7

It should be values-b+sr+Latn

Source: https://cs.android.com/android/platform/superproject/+/master:frameworks/base/libs/androidfw/Locale.cpp;l=213;drc=e0930d324c9c35546d6940e0ddc8f3e0bd850614

Maurice Lam
  • 1,577
  • 9
  • 14
1

The name should be "values-sr"

Valid XHTML

Community
  • 1
  • 1
uneven
  • 341
  • 2
  • 13
  • Thanks. That should work however I was worried because of the Serbian Latin specification. If tomorrow I want to support Cyrillic (Serbian) Android studio will show the same option. – Sarang Vyas Sep 11 '15 at 17:39
  • 2
    `values-sr` for Cyrillic, and `values-b+sr+Latn` for Latin. – Liggliluff Mar 21 '17 at 19:08