Comments (4)
<img src="https://avatars.githubusercontent.com/u/3476088?v=3" align="left" width="48" height="48"hspace="10"> Comment by alan-knight
The point is not to have them in one file. Typically a particular use of an application only requires one locale, maybe two. They're separate files so that the application only downloads the one that it wants. If you had them in one file then the application would always have to download every locale.
If we had a mechanism for specifying which locales an application might use then presumably there could be some sort of pruning of which locales to keep on the server. But this seems like a very low cost since these files change extremely rarely.
If we have a deferred loading mechanism then we might switch to having these files available as deferred code, which we do for localized messages now (but not deferred).
from i18n.
<img src="https://avatars.githubusercontent.com/u/4865287?v=3" align="left" width="48" height="48"hspace="10"> Comment by lrhn
Added Area-Pkg label.
from i18n.
<img src="https://avatars.githubusercontent.com/u/3276024?v=3" align="left" width="48" height="48"hspace="10"> Comment by anders-sandholm
Removed Library-Intl label.
Added Pkg-Intl label.
from i18n.
<img src="https://avatars.githubusercontent.com/u/3476088?v=3" align="left" width="48" height="48"hspace="10"> Comment by alan-knight
I'm calling this a duplicate of deferred loading, as the easiest way to avoid this is to have the files deferred. You'll still get 80 different Javascript files (if you use deferred loading), but if you don't want that, then just don't use deferred loading and include them all in the compiled code.
Added Duplicate label.
Marked as being merged into #305.
from i18n.
Related Issues (20)
- Docs state extracting from code supports wildcards, but it does not
- TODO for `package:messages`
- feat(intl): allow abbreviated months not strictly being title cased (MMM, LLL) HOT 5
- Invalid locale "se_SE" HOT 1
- Compare 2 DateFormat.Jms HOT 1
- Erroneous NumberFormat locale - pt_PT HOT 4
- Currency symbol is returning the ISO currency symbol instead of the actual symbol. HOT 1
- The isRtlLanguage method returns false for the RTL Kurdish (Sorani). HOT 2
- Deincrementing a date, then formatting it causes this library to count back up HOT 1
- Intl Exception when parse currency with symbol as suffix
- Intl round doubles wrong HOT 5
- Consider adding `topics` to `pubspec.yaml` for better discoverability
- update intl_en.arb file HOT 5
- Parsing of dates in "ar" locale fails when typed HOT 3
- NumberFormat.simpleCurrency for es_CO with COP symbol on right and not left HOT 4
- not possible to call initializeDateFormatting('pt_BR',null) as described in pub.dev HOT 4
- Use `native_toolchain_rust` to build ICU4X binary HOT 9
- Marathi language support not present HOT 2
- Long-term `package:intl`/`intl_translation` strategy
- Using intl4x on io platform 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 i18n.