marcglasberg / i18n_extension

Flutter package: Easy and powerful internationalization using Dart extensions.
Other
294 stars 64 forks source link

How to use with po files? #134

Closed chriscdn closed 1 year ago

chriscdn commented 1 year ago

The README.md example uses a GettextImporter function, which is imported from package:i18n_extension/io/import.dart; This file doesn't exist, which I assume has to do with the v8.0.0 dependency removal on gettext_parser.

Can the README.md be updated with a working example with .po files?

marcglasberg commented 1 year ago

Maybe for the time being, try using the previous version before the dependency removal?

marcglasberg commented 1 year ago

Closing this as duplicate of https://github.com/marcglasberg/i18n_extension/issues/126

chriscdn commented 1 year ago

I'm using an older version, but it forces me to use an older version of Flutter due to a dependency conflict (I think with the intl package).

marcglasberg commented 1 year ago

You can specify your intl version in your pubspec.yaml file:

dependency_overrides:
  intl: ^0.18.1