A node script to migrate both your translation files and service injections to ember-intl
Run the following command in your terminal:
npm install ember-i18n-intl-migrator -gor alternatively with yarn:
yarn global add ember-i18n-intl-migratorTo transform the translation files run:
ember-i18n-intl-migrator # default conversion to json
ember-i18n-intl-migrator --type=yamlTo 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 jscodeshiftThen you can run the codemod with:
jscodeshift -t https://raw.githubusercontent.com/DockYard/ember-i18n-to-intl-migrator/master/lib/codemod.js app/