Git Product home page Git Product logo

Comments (4)

DartBot avatar DartBot commented on August 29, 2024

<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.

DartBot avatar DartBot commented on August 29, 2024

<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.

DartBot avatar DartBot commented on August 29, 2024

<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.

DartBot avatar DartBot commented on August 29, 2024

<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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.