Ctrl + K
Get StartedStylesCoreCompsCDK
Installation
Customize the theme
Integrated icons
Integrated Tailwind
Setup translation
Dependencies

Translation

Translation is a core feature of ACoreX, allowing projects to support multiple languages seamlessly. You can enable this feature following the instructions below. Setting up translation is essential for starting a project with ACoreX.

Configuration

To configure translation, first, create a custom class to define the path for language JSON files. These files will be loaded using HTTP requests. Then, add this class as a provider in app.config.ts.

myTranslationLoader.ts

Add the following lines to the provider section of app.config.ts or app.module.ts:

app.config.ts
app.module.ts

Finally, create an i18n folder inside the assets directory and add the necessary translation files. Pre-made translation files can be downloaded from the link below.

On this page