https://github.com/dockyard/ember-i18n-to-intl-migrator
Migrate ember-i18n to ember-intl
https://github.com/dockyard/ember-i18n-to-intl-migrator
codemod ember-i18n ember-intl
Last synced: 23 days ago
JSON representation
Migrate ember-i18n to ember-intl
- Host: GitHub
- URL: https://github.com/dockyard/ember-i18n-to-intl-migrator
- Owner: DockYard
- License: mit
- Created: 2018-05-25T18:58:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-22T21:45:25.000Z (over 5 years ago)
- Last Synced: 2025-04-19T21:25:59.901Z (about 1 month ago)
- Topics: codemod, ember-i18n, ember-intl
- Language: JavaScript
- Size: 132 KB
- Stars: 21
- Watchers: 10
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
npm install ember-i18n-intl-migrator -g
```or alternatively with `yarn`:
```bash
yarn global add ember-i18n-intl-migrator
```## Usage
To transform the translation files run:
```bash
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:```sh
npm install -g jscodeshift
```Then you can run the codemod with:
```sh
jscodeshift -t https://raw.githubusercontent.com/DockYard/ember-i18n-to-intl-migrator/master/lib/codemod.js app/
```