Is there a way to retrieve from within my Google Chrome extension the list of all available translations?
For instance, my app may contain the following folders:
_locales\en\messages.json
_locales\fr\messages.json
_locales\es\messages.json
Is there a way to know that it's en
, fr
, and es
from within the extension itself?
And a second question, is there any way to parse a specific messages.json
file as the JSON data? I mean a little bit more capabilities than what's provided by chrome.i18n.getMessage()
.