Apple Watch基本本地化显示错误的默认语言 [英] Apple Watch base localisation shows wrong default language
问题描述
我有一个应用程序,该应用程序以三种语言(简体中文,法文和捷克文)进行了本地化,并以英语为开发语言.
I have an app localised in three languages (Simplified Chinese, French and Czech) with English as the development language.
虽然本地化在iPhone上可以正常使用,但是Apple Watch存在问题:如果用户将Watch语言设置为英语/法语/中文/捷克语以外的任何其他语言,则内容将改为显示中文的英语(应该是默认值).
While the localisations work perfectly on the iPhone, there is an issue with the Apple Watch: If a user has set the Watch language in any other language than English/French/Chinese/Czech, then the content is shown in Chinese instead of English (that should be the default).
根据此技术说明:
如果您的应用程序不支持用户的首选语言,则iOS会选择与您应用程序的开发区域(
CFBundleDevelopmentRegion
)相匹配的语言.
If none of the user’s preferred languages are supported by your app, iOS chooses the language matching your app's development region (
CFBundleDevelopmentRegion
).
注意:请确保为您的应用设置CFBundleDevelopmentRegion
.如果您采用基本本地化,请确保
CFBundleDevelopmentRegion
与您的内容所使用的语言匹配
Base.lproj
文件夹.
Note: Be sure to set CFBundleDevelopmentRegion
for your app. If you adopt Base Localization, make sure that the value of
CFBundleDevelopmentRegion
matches the language used by your content in
the Base.lproj
folder.
我已经确认满足了以上两个要求(CFBundleDevelopmentRegion="en"
并且所有Base.lproj
文件的确是英文).有什么我想念的吗?同样,这种情况仅发生在Watch应用程序上,而不发生在iPhone应用程序上.
I have confirmed both the above requirements are being satisfied (CFBundleDevelopmentRegion="en"
and all Base.lproj
files are indeed in English). Is there something I'm missing? Again, this happens only for the Watch app and not for the iPhone one.
推荐答案
From https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-130430 , CFBundleDevelopmentRegion is the language and region, e.g. en-US, not just en.
这篇关于Apple Watch基本本地化显示错误的默认语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!