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:
_localesenmessages.json
_localesfrmessages.json
_localesesmessages.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()
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…