我正在为 iOS 开发 Cordova+Ionic 应用程序的国际化版本。当前的应用程序名称是瑞典语,我想保留瑞典市场的名称,但国际应用程序将有一个新名称。
我需要该应用程序为瑞典的所有用户提供瑞典语名称,无论选择哪种语言。 是否可以仅根据地区本地化应用名称?
我知道您可以使用具有 CFBundle(Display)Name
属性的 InfoPlist.strings
资源对其进行本地化,但用于确定要使用的资源的区域设置是(如据我所知)仅基于设备的首选语言/区域设置,不考虑设备的区域设置。
例如,当首选语言设置为时,会加载 en-GB
语言环境的资源(位于 en-GB.lproj/InfoPlist.strings
) 英语(英国),但不适用于区域设置为英国的英语。
谢谢
最佳答案
不,目前这是不可能的
这是 documentation 的摘录:
First, the bundle determines which localization to use for the application as a whole. If a .lproj folder exists for the preferred language, that localization is used. Otherwise, the bundle searches for an .lproj folder matching the next preferred language, and so on, until one is found. If there is no localization for a preferred language, the bundle chooses the development language localization.
关于ios - 是否可以仅根据地区本地化 iOS 应用程序名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29564335/