Flutter Localization for data from Firestore

737 views Asked by At

I would like to localize my app in 4 different languages.

I have data that I retrieve from Firestore (i.e. titles, descriptions, etc) What would be a good approach to do this? I found this library https://pub.dev/packages/easy_localization

What is the right approach? It seems easy to localize hardcoded strings but I can't find anything regarding dynamic data.

Thanks!

1

There are 1 answers

1
user18309290 On

Use AssetLoader to retrieve from Firestore, see for details Easy Localization Loader. See HttpAssetLoader for the idea.