R. Andrew
R. Andrew

Reputation: 21

Flutter Localization for data from Firestore

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!

Upvotes: 2

Views: 960

Answers (1)

user18309290
user18309290

Reputation: 8310

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

Upvotes: 1

Related Questions