Android localize es-r419

前端 未结 4 1304
情歌与酒
情歌与酒 2021-02-01 21:51

I\'m localizing my app and one of the language/region supported is Espanol-419. Android doesn\'t support the naming convention values-es-r419 but it does accept values-en-rGB.

4条回答
  •  庸人自扰
    2021-02-01 22:37

    Android 7.0 (API level 24) brings more robust resource resolution, and finds better fallbacks automatically. However, to speed up resolution and improve maintainability, you should store resources in the most common parent dialect. For example, if you were storing Spanish resources in the values-es-rUS directory before, move them into the values-b+es+419 directory, which contains Latin American Spanish.

    Source: https://developer.android.com/guide/topics/resources/multilingual-support.html

    We offered language selection in-app, so to work well on new and old phones we kept duplicate resources in values-es-rUS Español (Estados Unidos) as well as values-b+es+419 Español (Latinoamérica)

提交回复
热议问题