we are trying to add multi-language support to our google home application. We need to support: English(us), En(CA), French(CA).
For that we specify lang property in the sync response including locale like en-us, en-ca, fr-ca: Note: synonyms for EN-US and EN-CA may be different.
"requestId":,
"payload":{
"agentUserId":"xxx",
"devices":[
{
"id":"xxx",
"type":"xxx",
"traits":[
"action.devices.traits.Cook",
"action.devices.traits.OnOff"
],
"name":{
"defaultNames":[
"xxx"
],
"name":"xxx",
"nicknames":[
"xxxx"
]
},
"willReportState":true,
"attributes":{
"supportedCookingModes":[
"BREW",
"BOIL"
],
"foodPresets":[
...,
{
"food_preset_name":"water",
"supported_units":[
"CUPS",
"OUNCES",
"NO_UNITS"
],
"food_synonyms":[
{
"synonym":[
"hot water",
"water",
],
"lang":"en-us"
},
{
"synonym":[
"hot water",
"water",
],
"lang":"en-ca"
},
{
"synonym":[
"eau chaude",
"eau",
],
"lang":"fr-ca"
}
]
}
]
},
"deviceInfo":{
"manufacturer":"xxx",
"model":"xxx",
"hwVersion":"1.0",
"swVersion":"1.0"
}
}
]
}
}
With such settings 50% of phrases do not work.
It worked with lang: "en" when we had English language only. But after adding of additional languages it stopped working.
As well here is selected languages:
What we are missing?