我正在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重定向到正确的区域设置子域名?
答案 0 :(得分: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__"
}
}
}