1

In my Flutter project I am going to use localization with Firebase Remote Config In Firebase remote config all locales in one json file:

{
 "page1": {
   "text1":{
     "ru" :"russian text",
     "en" :"english text"
   }
 },
  "page2": {
    "text1":{
      "ru" :"russian text",
      "en" :"english text"
    }
  },
 "common": {
    "text1":{
      "ru" :"russian text",
      "en" :"english text"
    },
    "text2":{
      "ru" :"russian text",
      "en" :"english text"
    }
 }
}

Is it possible to implement localization with Getx or Easy Localization in such format?

1 Answers1

0

It is possible with the Easy Localization. You create a RemoteConfigAssetLoader class that extends the AssetLoader class of the Easy Localization and then overwrite its load() method. See more details here: Flutter localization using Firebase Remote Config.

Hoa Le
  • 174
  • 4