-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support conditional compile / flavors #40
Comments
honestly, i wouldn't include translations into the build. i would actually have separate translation files and include only the one i need as a separate file. shouldn't be difficult with this is also why i do my templating server-side :P |
by separate file you mean a <script>, right? Well that would be good for local components. But what about published ones, ideally they should include translations, but still be as lightweight as possible by default. |
Looking at |
hmmm do you have a suggestion on how to handle it? it would have to be a different property. if you want to make your own plugin, you can try putting all the translations into a |
Ye, maybe I can try that. But |
this should be possible when we merge @yields's builder pr? |
i think the question is more whether it should be in the specs (translations, or, generally, optional deps/scripts/styles, etc). someone's going to have to implement it first though so we can judge. we could just close this for now since this isn't something that would be going in soon |
So what I want to achieve here is something like this:
Lets say you have a translation dictionary in all kinds of different languages ['en', 'de', 'hu', …]
It should be possible to compile
It does not need to be limited to languages. It might also be browser support, where we can compile separately one lean version for modern browsers and one fat (+50K) version for IE8 or something.
It might be a little related to #11, but for translations, it does not make sense to split them into separate packages.
The text was updated successfully, but these errors were encountered: