Comments (2)
Thanks for describing this issue, it definitely makes sense.
Let me rephrase:
Given that en_US and zh_CN are the supported languages and zh_CN is the fallback language.
A user has en_FR as its device locale.
Right now, the fallback zh_CN would be used.
It would be better to check if there is any supported locale that matches the language, in this case en_US, and use this.
It would be great if you submit a PR for this! :)
from easy_localization.
Thanks for describing this issue, it definitely makes sense. Let me rephrase:
Given that en_US and zh_CN are the supported languages and zh_CN is the fallback language. A user has en_FR as its device locale.
Right now, the fallback zh_CN would be used.
It would be better to check if there is any supported locale that matches the language, in this case en_US, and use this.
It would be great if you submit a PR for this! :)
sorry for not being able to submit a PR for this issue, not familiar with the code and really have no time to completely figure this out and test. Another 2 PRs of simple modification had been submitted, and thanks for your work in this repo, which did help a lot
from easy_localization.
Related Issues (20)
- [Feature Request]: Support namespaces / multiple files per language
- resetLocal crashes if deviceLocale not in supportedLocales HOT 2
- ignore_for_file: constant_identifier_names when generate locale_keys.g.dart
- Localization not working on physical device
- Can we generate locale keys in record form? HOT 12
- When using Icelandic (is), the automatically generated code conflicts with the keyword 'is' HOT 1
- Changing system language does not effect HOT 1
- Using macros to generate the LocaleKeys? HOT 1
- Refresh Localization Upon Version Update from Remote Assets HOT 1
- [Feature Request] need `path` can nullable when `extraAssetLoaders` isNotEmpty
- [Feature Request] need log warning on extraAssetLoaders' key if duplicate in addAllRecursive
- How to run golden tests with easy localization?
- web application not updated after change localization .
- Plurals does not support zero e.g. for en HOT 3
- Allow using your own logger
- why startLocale not work? HOT 1
- Display a loading screen if the NetworkAssetLoader is loading.
- Not genereted female and male keys HOT 1
- [3.0.7] `setLocale` not updating `savedLocale` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easy_localization.