Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Goals: Allowing multiple languages to be incorporated to the impac dashboard project (currently exclusively english).

Tools: angular translate (An angular library used to translate)
Challenges: In order to internationalize the library we need to go through every layer of the code to check that all the sentences displayed are being translated.

...

All the translations are kept in data-interchange formats (json, yaml, ...) that are then compiled as an angularjs module.

Code Block
languagexml
themeRDark
titlesrc/locales/en-gb.json
linenumberstrue
{
	"my.awesome.translation.of.hello_world": "Hello World",
	"namespace.to.avoid.confusion.or.conflicts": "Each variable has a unique name to avoid conflicts"
}

...