Reputation: 1
I would like to internationalize my extension on the Google Chrome Web Store. More precisely: I would like to display a title, a description and a detailed description in the native language of each country I target.
To do this, I followed the official Google documentation: https://developer.chrome.com/docs/webstore/i18n/
So I modified the manifest.json file by putting the following elements:
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
"default_locale": "en",
In my "local" folder are contained all my messages.json files displaying a title and a description for each language. Here is an example of a messages.json file (in Spanish):
{
"appName": {
"message": "La Touche Musicale - Aprender a tocar el piano en línea"
},
"appDesc": {
"message": "Aprende a tocar el piano fácilmente con las canciones que te gustan"
}
}
I compressed my folder and imported the zip into the Chrome developer dashboard. The different languages appear well in the item edition and I can change the detailed description according to the language.
However, the name and description, filled in each of my messages.json files and not editable from the dashboard, remain in English. For example, if I choose the Spanish language, the title and description displayed are :
Title: "La Touche Musicale - Learn piano online Description: "Learn piano easily with the songs you love".
This is the title and description of the language I selected by default (en) in the manifest.json file.
Why don't the title and description adapt to the selected language, as I defined in the messages.json files?
ATTACHED DOCUMENTS :
Whole content of the manifest.json file :
{
"manifest_version": 2,
"name": "MSG_appName",
"description": "MSG_appDesc",
"default_locale": "en",
"version": "1.1",
"browser_action": {
"default_popup": "hello.html",
"default_icon": {
"16": "images/icon16.png",
"32": "images/icon32.png",
"128": "images/icon128.png"
}
},
"icons": {
"16": "images/icon16.png",
"32": "images/icon32.png",
"128": "images/icon128.png"
}
}
Whole content of a messages.json file (es) [All messages.json files have exactly the same structure and content (except for the language translation)]:
{ "appName": { "message": "La Touche Musicale - Aprender a tocar el piano en línea" }, "appDesc": { "message": "Aprende a tocar el piano fácilmente con las canciones que te gustan" } }
Upvotes: 0
Views: 648
Reputation: 1507
Before the uploading in CWS you should test the extension in at least one of designed extension languages.
To do this you can set a language in your browser as "display Chrome in this language".
Upvotes: 0