FlutterGen / flutter_gen

The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
https://pub.dev/packages/flutter_gen
MIT License
1.43k stars 142 forks source link

i18n (slang) support? #281

Open fzyzcjy opened 1 year ago

fzyzcjy commented 1 year ago

Hi thanks for this wonderful package! I would appreciate it if i18n could be supported. For example, for https://github.com/Tienisto/slang:

  String get myObject {
    switch (LocaleSettings.currentLocale) {
      case AppLocale.zh:
        return zh.myObject;
      case AppLocale.en:
        return en.myObject;
    }
  }

and I put files like:

- zh
  - myObject.png
- en
  - myObject.png
ricardodalarme commented 6 months ago

+1

alexkater commented 3 weeks ago

+1