Migrate ember-i18n to ember-intl
Branch: master
Clone or download
Latest commit 95606f5 Jan 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__testfixtures__
__tests__ Basic tests + fix (#6) May 31, 2018
bin Remove unneeded file, add warning about old files. May 28, 2018
dummy Add two plural category (#20) Jan 19, 2019
lib Add two plural category (#20) Jan 19, 2019
.gitignore initial commit to transform translation files May 25, 2018
LICENSE add LICENSE May 25, 2018
README.md Add `yarn` install option (#7) Jun 1, 2018
package-lock.json 0.4.0 Jan 19, 2019
package.json 0.4.0 Jan 19, 2019

README.md

ember-i18n-to-intl-migrator

A node script to migrate both your translation files and service injections to ember-intl

Installation

Run the following command in your terminal:

npm install ember-i18n-intl-migrator -g

or alternatively with yarn:

yarn global add ember-i18n-intl-migrator

Usage

To transform the translation files run:

ember-i18n-intl-migrator # default conversion to json
ember-i18n-intl-migrator --type=yaml

To also run the codemod that will replace i18n: service() by intl: service() (and it's usages), you first have to install jscodeshift with:

npm install -g jscodeshift

Then you can run the codemod with:

jscodeshift -t https://raw.githubusercontent.com/DockYard/ember-i18n-to-intl-migrator/master/lib/codemod.js app/