localizely/intl_utils

Default to use main string if locale string is not translated

Opened this issue · 5 comments

Let me explain, if I have two languages for my app, main lang is en, the second one is fr, if a string in fr is not translated yet, it would be better to display en string but not ''.
Don't know if this is a issue or a feature need to be accomplished.
Thanks for great plugin!

@lzoran may I draw your attention to this issue?

Assuming we have 'en', 'de', and some strings that are different in Switzerland in 'de_CH' it would make sense to gradually fall back from 'de_CH' to 'de' and then to 'en' when strings are empty.

Relevant StackOverflow question:
https://stackoverflow.com/questions/61090508/flutter-internationalization-flutter-intl-plugin-by-localizely

Hi @stonega, @cbenhagen,

Apologies for the delayed response.

For those who use Localizely cloud platform, fallbacks will be solved with download flag via Localizely API.
For making a solution for this at intl_utils level, we are a bit blocked with Dart’s intl_translation internal dependency.

@lzoran can you share more details what is blocking you? Are there open issues in intl_translation for this already?

Hi @cbenhagen,

I haven't found any reported issues regarding this problem on the intl_translation and intl repos (maybe I missed something).

As I mentioned, we are using the intl_translation package for generating localization files, which Dart Intl library uses later. I don't see any configuration on the Dart Intl library side which enables this. Again, maybe I'm missing something, so any idea is welcome.