作为本地化的一部分,我现在正在尝试为Native languages(India).
在搜索时,我找到了一个我们可以创建的关于堆栈溢出的解决方案user defined locales.
我创建了自己的课程,比如
IndianLocale extends Locale {
IndianLocale (Locale Locale.En) ....
}
resource bundles
每个我都有。language
但我错过了我必须将这些捆绑包映射到 Locale 的地方(这样当我向 a 请求时locale
它会返回相应的 localize string
)。