load method
Implementation
Future load() async {
// Load the JSON file based on the locale
Map<String, dynamic> jsonMap =
_locale.languageCode == "en" ? english : khmer;
// Convert the JSON map values to string
_localizedStrings = jsonMap.map((key, value) {
return MapEntry(key, value as String);
});
}