Flutter localization: Can we directly replace some regex pattern in string to get dynamic string using json language files instead of using .arb files to avoid so many overheads of using .arb? Is there any limitation in this approach of direct replace and use instead of arb & Intl library?
"gd_morning": "Good Morning {name}",
AppLocalizations.of(context)
.get('gd_morning')
.replaceAll('{name}', 'My Name'),
Yes it's possible. Have a try with this.
This assumes that your json contents something like
"gd_morning": "Good Morning {0}"
for instance