load method
Load and cache a JSON file given a locale.
Implementation
Future<JsonLocalizations> load(Locale locale) async {
langTag = locale.toLanguageTag();
// in cache already
if (translations.containsKey(langTag)) {
return this;
}
// load combined key of languageCode and countryCode
translations[langTag] = await loadFile(locale);
return this;
}