@robmanganelly/ngx-translate-toolkit
v2.1.0
Published
[](https://robmanganelly.github.io/ngx-translate-toolkit/)
Downloads
4
Readme
NGX Translate Toolkit
Source Code: GitHub Repository
An Angular library that extends @ngx-translate/core to help manage translations at scale in large Angular projects.
Features
- Type-safe translation keys: Define and use translation keys with TypeScript type safety
- Hierarchical organization: Organize translations by project, type (components, services, etc.), and block
- Multi-loader support: Load translation files from multiple sources
- JSON Schema validation: Validate your translation files with the included JSON schema for IDE autocompletion and error detection
Documentation
Explore the full documentation on GitHub Pages.
JSON Schema
The library includes a JSON schema for translation files. Reference it in your translation files to get IDE validation and autocompletion:
{
"$schema": "./node_modules/@robmanganelly/ngx-translate-toolkit/src/translation-file.schema.json",
"projectType": "library",
"projectName": "my-project",
"myProject": {
"components": {
"myComponent": {
"title": "Hello World"
}
}
}
}