I'm attempting to localize a chrome hosted app that uses the Drive SDK and it's not obvious how to route people to a custom URL based on the locale. Within manifest.json
I want to put the locale in my app.launch.web_url
so once a user lands on my site the correct locale is loaded. I've tried
"app": {
"launch": {
"web_url": "__MSG_launchUrl__"
}
},
and
"app": {
"launch": {
"web_url": "http://www.foo.com/__MSG_locale__/endpoint"
}
},
but the first throws an error when you try to upload it because Google isn't pulling the string from the messages.json
file. The second fails because although it gets past Google's validator, it interprets __MSG_launchUrl__
as a literal string instead of a lookup variable.
On a similar note, I don't see a way to specify a locale specific url within the Google Drive SDK settings either.