An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Ember Intl Commands

[![CI](https://github.com/bertdeblock/ember-intl-commands/workflows/CI/badge.svg)](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"
```