Skip to content

KrishnaAnanthi/angular_internationalization

Repository files navigation

angular_internationalization

Multi language support in angular

To generate i18n files:

npm run int:extract

To run application in english :

npm run start

English text

To run application in french :

npm run start:fr

French text

To run application in Germen :

npm run start:de

Germen text

To add new text

Add the text in app.component.html file with new id, then run

npm run int:extract

now new text is added to messages.xlf files. Now copy the trans-unit block for new text and paste it in messages.de.xlf and messages.fr.xlf files. Now add the translated lines under target. eg)Bonjour Ananthi

About

Multi language support in angular 7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published