nordlabs / ungenotes

0 stars 0 forks source link

feat: add Translator #8

Closed befocken closed 2 years ago

befocken commented 2 years ago

It can easily be used by calling Translator.trans and parameters can be added by using the second argument of the function.

To add the translations more easily to the lang.ts file, one can set up a live template in Jetbrains IDEs:

'$KEY$': {
    'en': '$EN$',
    'de': '$DE$',
},$END$

This supports by adding the necessary language keys directly and jumping between the different entries.

fix #7