Internationalization (I18n)

ScaffoldHub has built-in internationalization.

You can select the language on the sign-in page.

Or change it on the header I18n dropdown.

Then, your application will be entirely translated.

Code

You can find translations in the src/translation/[lang]/[lang].ts folder.

Sometimes you need to add variables to the translations, like in this case:

cannotDeleteReferenced: `Cannot delete {0} because it's referenced by one or more {1}.`,

You need to use the formatTranslation method and pass the variables as arguments, in order.

Last updated