- Endpoint get Json
- Create class
AppMessageLookupProxy
extendsMessageLookup
- Override
lookupMessage
function to get string from json which was fetched from Backend
- Run command
intl_translation:generate_from_arb
to generate language file (.dart)
shouldReload
: compare request time, if having new request => returntrue
to trigger reloadload
: injectAppMessageLookupProxy
topackage:intl/src/intl_helpers.dart
.messageLookup
MaterialApp.locale
<- initial locale, set it in future if need to change localeMaterialApp.localizationsDelegates
<- passAppLocalizationsDelegate
with dynamic l10n data, set it in future if need to reload translation strings