Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Locale is null #74

Open
IdrissMiraoui opened this issue Mar 16, 2022 · 1 comment
Open

Default Locale is null #74

IdrissMiraoui opened this issue Mar 16, 2022 · 1 comment
Labels
question Further information is requested

Comments

@IdrissMiraoui
Copy link

IdrissMiraoui commented Mar 16, 2022

When the locale is not supported, the plugin not return the deault one (english).
The returned value is null.

@IdrissMiraoui IdrissMiraoui changed the title Set a default Locale Default Locale is null Mar 16, 2022
@Daniel-Ioannou Daniel-Ioannou added the question Further information is requested label Apr 11, 2022
@Daniel-Ioannou
Copy link
Owner

Hi @IdrissMiraoui, CountryLocalizations.of(context)?.countryName(countryCode: country.countryCode) is null when locale is not supported because CountryLocalizations.of(context) is null.
As far as I know this is how localizationsDelegates work, check the flutter documentation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants