# @siemens/element-translate-ng

- [Types](<https://element.siemens.io/api/siemens/element-translate-ng/types/>)

## Element Translate

`element-translate-ng` is a translation abstraction layer. It can be used with

- `ngx-translate`
- Angular localize
- Other frameworks in the future

See [translation](<https://element.siemens.io/fundamentals/translation/>) for application configuration and usage. For Element development, see the [translation abstraction](<https://element.siemens.io/contributing/translation/>) guide.

## Usage

Install the library as follows:

```
npm install --save @siemens/element-translate-ng
```

An important part of the translation tooling is the extraction of translatable keys as a TypeScript interface as well as extracting a JSON messages file with default translations. This is provided by the separate `@siemens/element-translate-cli` package via the `update-translatable-keys` CLI. See [Extracting translatable keys](<https://element.siemens.io/contributing/translation/#extracting-translatable-keys>) for details on how to run it and how to configure it.

## Testing

Run `pnpm run translate:test` to perform the unit tests via [Vitest](<https://vitest.dev/>).

## License

The following applies for code and documentation of the git repository, unless explicitly mentioned.

Copyright (c) Siemens 2016 - 2026

MIT, see [LICENSE](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/LICENSE>).
