Skip to content

Commit

Permalink
update contribution regarding new translatable strings
Browse files Browse the repository at this point in the history
(Reverts commit ffc369d: "don't gitignore en.min.json file")
  • Loading branch information
tyrasd committed Jan 31, 2025
1 parent 561197e commit d39f61f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ transifex.auth
/dist/*.map
/dist/data/
/dist/img/*.svg
/dist/locales/*.json
!/dist/locales/en.min.json
/dist/locales/en.min.json
/dist/mapillary-js/
/dist/pannellum/

Expand Down
9 changes: 4 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,10 @@ only display them in the interface through the `t()` function.
Then, add the new string to `data/core.yaml`. The translation system, Transifex,
will automatically detect the change.

If you are updating an existing string, update it in `data/core.yaml` and run
`npm run build` to generate the `en.json` file automatically, then commit both
modified files.

Use `npm run build` to build the translations with the local changes.
If you are adding or updating an existing string, update it in `data/core.yaml`
and run `npm run build` to generate the `en.min.json` file automatically. Only
commit the `data/core.yaml` file in your pull request. The translation system,
Transifex, will automatically detect the changes.

`npm run translations` can be used to pull the latest translations from Transifex.

Expand Down

0 comments on commit d39f61f

Please sign in to comment.