localizely / intl_utils

Dart package that creates a binding between your translations from .arb files and your Flutter app
BSD 3-Clause "New" or "Revised" License
135 stars 81 forks source link

[BUG] Locale data has not been initialized #109

Open LuuPNH opened 1 year ago

LuuPNH commented 1 year ago

Error in app: image Throw source:

image
lzoran commented 1 year ago

It appears that date formatting might have been triggered in your code prior to the completion of your localization delegates.

You might find the guide and the sample app useful for gaining more clarity. If these resources don't help you, could you provide an example that can be reproduced? It will make it easier to diagnose the underlying issue.

AndrewBert commented 1 year ago

I need to do the same manual fix after upgrading to the latest version of flutter.

lzoran commented 1 year ago

I've created a new Flutter project and integrated the required localization code as outlined in the guide and demonstrated in the sample app. Everything seems to work as expected.

However, to be able to provide any further assistance, I need more detailed information about the problem you're experiencing. A reproducible example of the issue would be a great starting point.

Test environment: Windows 11, Flutter 3.10.5, intl_utils 2.8.3, Flutter Intl 1.18.3-2022.2.

couturmi commented 1 year ago

I've created a new Flutter project and integrated the required localization code as outlined in the guide and demonstrated in the sample app. Everything seems to work as expected.

@lzoran We are seeing this issue on Flutter 3.10.5. Can you confirm this is the version you are using?

lzoran commented 1 year ago

@couturmi

@lzoran We are seeing this issue on Flutter 3.10.5. Can you confirm this is the version you are using?

Yes.

Flutter 3.10.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 796c8ef792 (8 days ago) • 2023-06-13 15:51:02 -0700
Engine • revision 45f6e00911
Tools • Dart 3.0.5 • DevTools 2.23.1

This is the sample app I've used to try to reproduce the issue. As I said, everything works fine on my machine. 😕