https://github.com/bertdeblock/ember-intl-commands
Useful commands for managing your ember-intl translation files.
https://github.com/bertdeblock/ember-intl-commands
Last synced: 5 months ago
JSON representation
Useful commands for managing your ember-intl translation files.
- Host: GitHub
- URL: https://github.com/bertdeblock/ember-intl-commands
- Owner: bertdeblock
- License: mit
- Created: 2021-04-09T15:35:27.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T10:29:30.000Z (about 2 years ago)
- Last Synced: 2025-02-03T09:42:15.208Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 294 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ember Intl Commands
[](https://github.com/bertdeblock/ember-intl-commands/actions?query=workflow%3ACI)
Useful commands for managing your [ember-intl](https://github.com/ember-intl/ember-intl) translation files.
## Commands
- [collect-new-keys](#collect-new-keys)
- [list-duplicates](#list-duplicates)
- [list-locales](#list-locales)
- [move-key](#move-key)
- [remove-key](#remove-key)
- [sort-keys](#sort-keys)
- [strip-empty-keys](#strip-empty-keys)
- [to-casing](#to-casing)
- [to-ext](#to-ext)
### collect-new-keys
Collect newly added keys. `fallbackLocale` will be used if no locale is provided.
```shell
npx ember-intl-commands collect-new-keys
npx ember-intl-commands collect-new-keys "en-US"
```
### list-duplicates
List all duplicate translations. `fallbackLocale` will be used if no locale is provided.
```shell
npx ember-intl-commands list-duplicates
npx ember-intl-commands list-duplicates "en-US"
```
### list-locales
List all locales.
```shell
npx ember-intl-commands list-locales
```
### move-key
Move a key.
```shell
npx ember-intl-commands move-key "old.key" "new.key"
```
### remove-key
Remove a key.
```shell
npx ember-intl-commands remove-key "some.key"
```
### sort-keys
Sort keys.
```shell
npx ember-intl-commands sort-keys
```
### strip-empty-keys
Strip empty keys (`""`, `null` or `{}`).
```shell
npx ember-intl-commands strip-empty-keys
```
### to-casing
Convert all keys to `camelCase`, `param-case` or `snake_case`.
```shell
npx ember-intl-commands to-casing "camel"
npx ember-intl-commands to-casing "param"
npx ember-intl-commands to-casing "snake"
```
### to-ext
Convert all files to `json`, `yaml` or `yml`.
```shell
npx ember-intl-commands to-ext "json"
npx ember-intl-commands to-ext "yaml"
npx ember-intl-commands to-ext "yml"
```