openfoodfacts / smooth-app

🤳🥫 The new Open Food Facts mobile application for Android and iOS, crafted with Flutter and Dart
https://world.openfoodfacts.org/open-food-facts-mobile-app?utm_source=off&utf_medium=web&utm_campaign=github-repo
Apache License 2.0
827 stars 277 forks source link

The onboarding is half-french / half english #935

Closed teolemon closed 2 years ago

teolemon commented 2 years ago

What

monsieurtanuki commented 2 years ago

cf. https://github.com/openfoodfacts/smooth-app/issues/41#issuecomment-841797727

The very first init of the app, for importance preferences we'll use the English version from the asset folder (we cannot store all languages in the assets), while async'ly downloading the "French version" and refreshing when done. Without internet connection, we're stuck with the English version. With internet connection, we probably should wait until that meta-data is downloaded.

Suggestion: make it explicit in the onboarding that we need to init the app using internet (additional "localized init" phase?), and in that internet/init phase we could download the sample product and the localized metadata.

That being said, I'm not sure if what I've just said applies exactly with that specific issue. But it should be dealt with, too.

monsieurtanuki commented 2 years ago

Suggestion: make it explicit in the onboarding that we need to init the app using internet (additional "localized init" phase?), and in that internet/init phase we could download the sample product and the localized metadata.

@teolemon ping: either we have an app with potentially default values in English, or we take time to download localized data. And if we take time and use the internet it's probably better to tell so to the user, isn't it?

teolemon commented 2 years ago
jasmeet0817 commented 2 years ago

So I talked to Stephane about this last week, this was the plan

monsieurtanuki commented 2 years ago

Working on the subject, and so far so good...

monsieurtanuki commented 2 years ago

Et voilà: Simulator Screen Shot - iPhone 8 Plus - 2022-01-19 at 14 51 34

Simulator Screen Shot - iPhone 8 Plus - 2022-01-19 at 14 51 51

Simulator Screen Shot - iPhone 8 Plus - 2022-01-19 at 14 52 12

I rely on the 'example' barcode. 90% of the job is done. Still some refactoring to do, and coding on off-dart.

monsieurtanuki commented 2 years ago

Fixed by #986.