AndrossyLocalizer.fromJson constructor
AndrossyLocalizer.fromJson(
- String json
Example JSON
{
"Home": {
"bn": "হোম"
},
"Notification": {
"bn": "বার্তা"
},
"Profile": {
"bn": "প্রোফাইল"
}
}
Example
var json = await rootBundle.loadString("assets/contents/localizations.json");
Localizer localizer = Localizer.fromJson(json);
Implementation
AndrossyLocalizer.fromJson(String json)
: localizations = _json(jsonDecode(json));