localization - 我可以更改 Apple Watch 模拟器语言吗?

标签 localization watchkit apple-watch

是否可以更改 Apple Watch 模拟器语言环境?我想测试我的 watch 应用程序的本地化。我可以在 iPhone 模拟器上更改语言,但 watch 模拟器始终是英文的。我找不到任何语言设置:

Apple Watch Simulator Settings
Apple Watch Simulator Settings General (top)
Apple Watch Simulator Settings General (bot)

最佳答案

通过 Watch Simulator UI 或 iOS Simulator Watch 应用程序当然不可能,但您可以从位于以下位置的 iOS Simulator 文件夹中复制值:
<simulator_dev_folder>/data/Library/Preferences/.GlobalPreferences.plist
到 Watch Simulator 中的同一个文件。

要查找的 Plist 键:

  • AppleLocale
  • AppleLanguages
  • AppleKeyboards
  • 关于localization - 我可以更改 Apple Watch 模拟器语言吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34103580/

    相关文章:

    c# - 在组合框中使用资源的 XAML 全局化

    c# - .NET 本地化失败

    ios - AFNetworking cocoapods 为 WatchOS 2 扩展构建失败

    location - 我可以让 Watch 应用在后台运行吗?

    ios - Apple WatchKit,构建具有与操作系统相同的 UI 的应用程序

    ios - Apple Watch 应用拒绝 "Booting to White Screen"

    ios - startAnimatingWithImagesInRange 反转

    swift - 使用 Storyboard检测 WatchKit 上所有四个方向的滑动

    安卓多语言支持 : string formatting issue due to different placeholder counts

    ruby-on-rails - Rails 4 - 按翻译/本地化值排序