bertdeblock / ember-intl-commands

Useful commands for managing your ember-intl translation files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ember Intl Commands

CI

Useful commands for managing your ember-intl translation files.

Commands

collect-new-keys

Collect newly added keys. fallbackLocale will be used if no locale is provided.

npx ember-intl-commands collect-new-keys
npx ember-intl-commands collect-new-keys "en-US"

list-locales

List all locales.

npx ember-intl-commands list-locales

move-key

Move a key.

npx ember-intl-commands move-key "old.key" "new.key"

remove-key

Remove a key.

npx ember-intl-commands remove-key "some.key"

sort-keys

Sort keys.

npx ember-intl-commands sort-keys

strip-empty-keys

Strip empty keys ("", null or {}).

npx ember-intl-commands strip-empty-keys

to-casing

Convert all keys to camelCase, param-case or snake_case.

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.

npx ember-intl-commands to-ext "json"
npx ember-intl-commands to-ext "yaml"
npx ember-intl-commands to-ext "yml"

About

Useful commands for managing your ember-intl translation files.

License:MIT License


Languages

Language:JavaScript 98.9%Language:Handlebars 1.1%