Skip to content

Commit b6fd84c

Browse files
chore: Update translations and l10n commands (#5487)
1 parent 2808523 commit b6fd84c

File tree

21 files changed

+1558
-1342
lines changed

21 files changed

+1558
-1342
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ install: yarn
2424

2525
script:
2626
- touch .env
27-
- node scripts/l10n.js generate
27+
- yarn l10n:generate
2828
- yarn lint
2929
- COVERAGE=true yarn test
3030
- ROOT_URL=open-event-frontend ember build -prod

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ARG api_host
1313
ARG google_api_key
1414
ENV API_HOST=$api_host
1515
ENV GOOGLE_API_KEY=$google_api_key
16-
RUN node scripts/l10n.js generate && \
16+
RUN yarn l10n:generate && \
1717
touch .env && \
1818
JOBS=1 yarn build -prod
1919

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ The Open Event Frontend can be easily deployed on a variety of platforms. Detail
3535

3636
**Note**: Please follow [installation steps](/docs/installation/local.md#steps) listed above carefully before running
3737

38+
Unfortunately, no one reads the note above, so please just run the following commands when setting up for the first time:
39+
- `yarn`
40+
- `cp .env.example .env`
41+
- `yarn l10n:generate`
42+
43+
Running:
3844
- `yarn start`
3945
- Visit your app at [http://localhost:4200](http://localhost:4200).
4046

docs/installation/local.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ cd open-event-frontend
2121

2222
* `yarn`
2323
* `cp .env.example .env`
24-
* `node scripts/l10n.js generate`
24+
* `yarn l10n:generate`
2525

2626
#### Important Notes
2727
- Open Event Frontend supports [FastBoot](https://github.com/ember-fastboot/ember-cli-fastboot) which is disabled for the development environment and is controlled by the flag `FASTBOOT_DISABLED` in the `.env` file.
2828

29-
- **Only for Mac users** :- If while running `node scripts/l10n.js generate` you encounter `Get-Text Finding Error` or `Ember-l10n Missing Dependencies`.
30-
Please use this before running `node scripts/l10n.js generate` again :
29+
- **Only for Mac users** :- If while running `yarn l10n:generate` you encounter `Get-Text Finding Error` or `Ember-l10n Missing Dependencies`.
30+
Please use this before running `yarn l10n:generate` again :
3131
```sh
3232
brew reinstall gettext
3333
brew link --force gettext

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
1818
"lint:js": "eslint --cache --fix app ember-cli-build.js testem.js tests config",
1919
"lint:scss": "sass-lint -c .sass-lint.yml --verbose",
20-
"lint:hbs": "ember-template-lint --fix ."
20+
"lint:hbs": "ember-template-lint --fix .",
21+
"l10n:extract": "node scripts/l10n.js extract",
22+
"l10n:update": "node scripts/l10n.js update",
23+
"l10n:generate": "node scripts/l10n.js extract"
2124
},
2225
"pre-commit": {
2326
"run": [

0 commit comments

Comments
 (0)