1

我正在 Chrome App Store 中为我的应用发布多种语言。

我正在尝试发布我的应用程序,以便它根据语言将 Chrome App Story 语言版本链接到我们的子域。

例子:

//in manifest.json:
  "name": "__MSG_appName__",
  "description": "__MSG_appDesc__",
  "default_locale": "en",

//in _locales/en/messages.json:
{
  "appName": {
    "message": "My App",
    "description": "The title of the application, displayed in the web store."
  },
  "appDesc": {
    "message": "This app does something awesome.", 
    "description":"The description of the application, displayed in the web store."
  }

  >>>> THIS LANGUAGE SHOULD USE URL - EN.MYDOMAIN.COM

}

//in _locales/de/messages.json:
{
  "appName": {
    "message": "My Application German"
  },
  "appDesc": {
    "message": "This application does something brilliant in German."
  }

  >>>> THIS LANGUAGE SHOULD USE URL - DE.MYDOMAIN.COM

}

非常感谢所有支持。如何让 Chrome App Store 根据语言重定向到正确的语言环境子域 URL?

4

1 回答 1

2

“应该使用 URL”是什么意思?您是托管应用程序还是打包应用程序?如果您指的是托管应用程序,请参阅https://code.google.com/p/chromium/issues/detail?id=85034以及由此产生的代码更改,示例如下:https://codereview.chromium。 org/9421010/diff/6001/chrome/test/data/extensions/manifest_tests/launch_local_path_localized.json

{
   "name": "test",
   "version": "1",
   "default_locale": "en",
   "app": {
     "launch": {
       "local_path": "__MSG_local_launch_path__"
     }
   }
}
于 2013-04-13T21:48:44.363 回答