angular-i18next | angular v10+ integration with i18next v194+ | Internationalization library
kandi X-RAY | angular-i18next Summary
kandi X-RAY | angular-i18next Summary
Angular 13 support angular-i18next@11.0.0.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of angular-i18next
angular-i18next Key Features
angular-i18next Examples and Code Snippets
Community Discussions
Trending Discussions on angular-i18next
QUESTION
I need to implement internationalization in a large scale project in Angular. From what I have found, there are two main choices : Angular's official i18n OR ngx-translate.
To understand advantages and disadvantages of both, I have gone through a lot of discussions :
https://github.com/angular/angular/issues/16477
https://github.com/ngx-translate/core/issues/495
https://github.com/ngx-translate/core/issues/783
Differences ngx-translate vs i18n
Now, the 3rd option is "angular-i18next". There's not a lot of documentation on this. I understand it's a wrapper over i18next. But does it overcome any shortcomings like:
Translating non template text.
Dynamic translations without reloading the page.
Having single build with AOT compilation.
Or, my best bet is to choose between i18n and ngx-translate? Also, is anyone using "angular-i18next"?
...ANSWER
Answered 2019-Jul-17 at 14:22After some more research, I came to a conclusion that i18-next does not offer anything over official Angular's i18n. Also, to use i18-next, you'll have to rely on an external dependency angular-i18next, and I am not convinced to do that for a large scale application.
Funnily enough, an article posted on angular-i18next page, states the following:
My point is: There are basically no features that I18next supports and the built-in I18n Angular module doesn’t. So if there is a relatively little difference, why would you make your life more complex and include some third-party I18n framework? Especially, when it relies on a separate plugin (maintained by another person) to make everything working?
Considering these things, and the fact how heavy i18next library is, and the learning time, I immediately dropped the idea to proceed with i18next.
Instead, for now, best option according to me is to go with Angular's official i18n, with the i18n-polyfill for template outside translations. And as soon as i18n gets this functionality, I'll migrate completely to i18n.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular-i18next
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page