Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular - internationalization (i18n)

What is the best way to implement the internationalization for a angular application at the moment?

like image 915
muetzerich Avatar asked Nov 30 '22 23:11

muetzerich


2 Answers

The official i18n angular2 will be implemented in one of the rc release before the final release. It also will be more advanced than the current solutions.

More info how the new concept of i18n works in angular2:
https://lingohub.com/blog/2015/03/angular-2-i18n-update-ng-conf-2015

UPDATE 6 SEPTEMBER 2016:

Support for i18n is now official in Angular 2 RC6

Official release blog:
https://angularjs.blogspot.nl/2016/09/angular-2-rc6_1.html

A sample of internationalization with Angular 2 RC6
https://github.com/StephenFluin/i18n-sample

like image 67
Herman Fransen Avatar answered Dec 04 '22 06:12

Herman Fransen


At the moment the best alternative is is to use ng2-translate, which is a port to Angular 2 of the well known ng-translate. This will likelly cover the majority of use cases.

Later for Angular 2 there will be an official i18n implementation.

like image 32
Angular University Avatar answered Dec 04 '22 07:12

Angular University