Comments (11)
Maybe it has something to do with this issue: flutter/flutter#14128
What do you think?
from i18n_extension.
It seems that one needs to add an es
localization in Xcode, per flutter/flutter#14128. However, the way I18n
picks up its locale, it obtains the correct local after its child widgets have been built and it doesn't bother rebuilding them.
from i18n_extension.
Hey, i facing with same issue, but i can resolve my problem changing the development language, in project.pbxproj have the:
DevelopmentRegios = en; // Change this to your language (or the language you want) (example: French = fr, Portuguese = pt...)
and have the knownRegions too, you need change, my knowRegions is default =
knownRegions = (
en,
Base,
),
and i added in first my language, and its works to mee, if not working, we'll try find your problem
from i18n_extension.
Yes... but i can't resolve just seeing this issue... i found in a post of stackoverflow (i don't have the link anymore, but i'll try again)
from i18n_extension.
@lucas-sesti Ok!
@maguro Does that solve your problem?
from i18n_extension.
I tried solution from flutter/flutter#14128, it works in debug but failed in release build. Any other clue?
from i18n_extension.
@suesitran Did you try what i said? Because i tested in debug and release build, and both works
from i18n_extension.
Yes I tried it, does not work. My development region is English (not sure if i have to change to en), and known region is (en, Base)
from i18n_extension.
Probably you don't need change to en.. but, if you want change to other languages, you need put in first options off knownRegions and in development region
from i18n_extension.
I can vouch for the solution.
The following code wasn't working properly:
localeListResolutionCallback: (locales, supported) {
Locale locale = Locale('en', 'US');
for (var loc in locales) {
if (supported.contains(loc)) {
locale = loc;
break;
}
}
return locale;
}
Even though the Device's Locale was set to a different language the locales
parameter was returning: [en_US, pt_BR, en]
. Not honoring the priority set on the device.
The solution:
- Add the supported languages on the XCode project (picture 1).
- Add
Localized resources can be mixed
toYES
on theInfo.plist
(picture 2).
After those settings set, the locales param is rightfully being returned as [pt_US, pt_BR, en]
(pt_US
in this case is expected to be first because the phone region is set to the USA)
from i18n_extension.
Any updates on it?
from i18n_extension.
Related Issues (20)
- How to structure translations in library and applications HOT 2
- Sources for version 5.0 is not available HOT 1
- Error "Translation key in 'en_us' is missing: [...]" while using custom modifiers
- Issue with updating the app language accross the app from the child widget to ancestor widget. HOT 3
- I can't seem to make it work with async_redux. HOT 1
- Support Analyzer 4 HOT 2
- Incorrect plural forms from po files HOT 2
- "Translation key in 'en' is missing..." logs in my debug console HOT 2
- mark a string for getstrings but don't actually translate HOT 8
- We need to update the intl dependency HOT 6
- JSONImporter and getStrings was moved outside of the lib directory. HOT 10
- build fail with v8.0.0 HOT 6
- EXCEPTION CAUGHT BY WIDGETS LIBRARY when running a test HOT 4
- Use intl 0.18.0 HOT 11
- What happened to the JSONImporter? HOT 4
- Error on import package:i18n_extension/io/import.dart in version 9.0.0 HOT 2
- How to use with po files? HOT 4
- Could not find bin/getstrings.dart in package i18n_extension. HOT 1
- There are no translations in 'en_us' HOT 2
- [v11.0.11] Method signature suggestion HOT 1
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 i18n_extension.