Jesway / flutter_translate

Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter.
MIT License
401 stars 118 forks source link

Support for missing strings fallback #93

Closed guillaumeboehm closed 10 months ago

guillaumeboehm commented 2 years ago

Opening a new pr following #46 with the feature as an opt-in option, updated examples, and for the wiki the only relevant change seems to be this:

diff --git a/1.-Installation,-Configuration-&-Usage.md b/1.-Installation,-Configuration-&-Usage.md
index 40c1400..34608d0 100644
--- a/1.-Installation,-Configuration-&-Usage.md
+++ b/1.-Installation,-Configuration-&-Usage.md
@@ -55,6 +55,15 @@ If the assets directory for the localization files is different than the default
       ...

+If you want your translations to use the fallback locale in case of missing strings in the translation files you can set this option (default is false): + +```dart

guillaumeboehm commented 2 years ago

This fork is starting to deviate a bit from the initial PR so I think I'll just keep it as a fork at least until it's more polished.

simplenotezy commented 11 months ago

@guillaumeboehm we would be super happy to have this merged

guillaumeboehm commented 11 months ago

I don't mind reopening but I doubt that the maintainer is expecting to extend the project more. I also stopped Flutter development a little while ago and I don't think I'll go back to it any time soon, so I won't update the code if needed. Maybe you could finalize this PR using my code, but you might end up having to fork and maintain this whole project yourself if you want more features.

bratan commented 10 months ago

I will close this pull request as I`m currently creating a new version with an updated API which will include this functionality as well.

simplenotezy commented 10 months ago

Sounds amazing @bratan!