Installation
Last updated
Was this helpful?
Last updated
Was this helpful?
The recommended way to add Transloco to your project is by running the add schematics:
For more information, see the documentation page.
As part of the installation process, you'll be presented with questions; Once you answer them, everything you need will automatically be created.
Let's take a closer look at the updates made and the generated files:
The command will add the provideTransloco
and provideHttpClient
to your app providers:
A default http loader implementation to fetch the translation files:
Transloco creates boilerplate files for the requested languages with an empty JSON:
This config is used by tools & plugins such as the scoped lib extractor and the keys manager.
And that's it! Now we are ready to use it in our project.