Skip to content

An example repository showing how to use Localazy with Angular and angular-i18n library for translation management and localization.

localazy/angular-i18n-example

Repository files navigation

angular-i18n-example

How to localize Angular app with angular-i18n and Localazy

This is an example repository showing how to use Localazy with angular-i18n for localization management. To learn more, check out the blog post describing the set up in detail.

Sandbox

https://codesandbox.io/s/quiet-flower-3l64n

Testing out this repo

This repository contains translations from an actual Localize Angular App example app. You can try to run localazy download to see how it works. However, this app is in read-only mode, meaning that localazy upload will fail.

First install dependencies

npm install

and then run the application

ng serve

Adjusting for your own project

  • sign up for Localazy,
  • create an app, although English is recommended, you may use any language as source,
  • select Angular integration option and install Localazy CLI,
  • Retrieve your writeKey and readKey from the integration guide page and change them in localazy.keys.json,
  • it is recommended to add localazy.keys.json to .gitignore,
  • prepare template(s) for internationalization,
  • export source language XLIFF file,
  • run localazy upload,
  • when you have accepted strings in other languages, run localazy download and check locales folder for the new translations,
  • run the app ng serve

About

An example repository showing how to use Localazy with Angular and angular-i18n library for translation management and localization.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •