-
Notifications
You must be signed in to change notification settings - Fork 357
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
[Enhancement] Test (and modify) all our components to make them support or handle i18n
and l10n
.
#324
Comments
One thing (I work a lot outside the US) that I really appreciate is either opting in to localized text or having a message letting me know that i am seeing translated content with a prominent link to the default language. |
Would this only support i18n the Angular2 native way or would it be possible to override labels via Input parameters to use frameworks like https://github.com/ngx-translate/core ? |
@forrest-lyman that is more of an issue on implementation and UX on the product side, but its a nice feature we can implement in our internal products. @crain For the most part we want every piece of text to be provided on consumption through We are probably gonna start using |
@emoralesb05 Why are you going to use ngx-translate? I can see one showstopper to use native Angular i18n - that is translating text inside source files. But @ocombe, the creator of ngx-translate is now a core contributor in Angular and going to solve this issue soon angular/angular#11405 PS: I do think native angular i18n is more efficient since it produce no runtime penalty and all hard work is done is compilation stage that can be significant for big enterprise apps. |
I am working on this right now, there is currently a blocker because I need to wait for the implementation of TypeScript transformers into tsc_wrapper for Angular (the team is working on this), but if everything goes well, this should land around 4.2 (maybe 4.3). This is a rough estimate since the blocker is not up to me :-) |
@quanterion Yes, i've been following the progress of you answered in that statement the reason why angular's native i18n doesnt work for me. I dont want to have @ocombe Awesome man! Looking forward to all that, and using |
I'll try to help with the migration by updating ngx-translate to support i18n tags, but there will be a bit of "replace in folders" to do :) I agree that the n builds for n languages is a bit cumbersome, I'd love to have an option to support multiple languages in one build (even if the payload is higher), but it's definitively not for now, I'll have to convince the googlers and that will be hard. |
@emoralesb05 The |
@parker-mike you need to use the |
@emoralesb05 That's how I'm working now, but this way I can't use the translation pipe. Sorry, I didn't mention that I'm using the |
So i do this in one of the internal products, but you can set they
|
Feature Request
We need to make sure all our components either handle
i18n
andl10n
, or atleast are flexible enough so the text could be replaced.Covalent Modules:
The text was updated successfully, but these errors were encountered: