【问题标题】:How add new localization for achivment or lederboard items via Play Games Services Publishing API如何通过 Play Games Services Publishing API 为成就或排行榜项目添加新的本地化
【发布时间】:2015-12-27 21:44:12
【问题描述】:

当我在请求 JSON (https://developers.google.com/games/services/publishing/api/achievementConfigurations) 中添加新的本地化(不是为游戏手动添加的)以更新成就或排行榜时,服务器返回以下错误:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "UnsupportedLocale",
    "message": "The locale bg in the name field is not supported by the application."
   }
  ],
  "code": 400,
  "message": "The locale bg in the name field is not supported by the application."
 }
}

请帮我解决这个问题

【问题讨论】:

  • 语言环境 bg 是否代表 Java Locale “Bulgarian” (bg)?您是否尝试过其他语言环境?

标签: google-play-services google-play-games google-play-developer-api


【解决方案1】:

我相信为了让 API 接受翻译,需要将语言添加到游戏定义中。如果您进入您的游戏,然后进入游戏详情选项卡,点击“添加翻译”并添加保加利亚语。

添加后,您可以使用 API 上传值。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-30
    • 2015-07-05
    • 2014-05-13
    • 2017-01-30
    • 1970-01-01
    • 2018-12-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多