Skip to content

Commit 4fe9ac8

Browse files
authored
Merge pull request #1694 from Faakhir30/make_i18n_command
Update translation command to make i18n.
2 parents 55355b4 + d5abdab commit 4fe9ac8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/i18n-l10n/contributing-translations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The process of translating the Volto frontend is the following.
7575
- To update a translation, translate your language's `po` file found at `locales/{language_code}/LC_MESSAGES/volto.po`.
7676
- To create a new translation, create a new directory at `locales/{language_code}/LC_MESSAGES/`, copy the file `locales/volto.pot` to `locales/{language_code}/LC_MESSAGES/volto.po` (note to drop the trailing `t`), and start translating.
7777

78-
4. Run `yarn i18n` to convert your `po` files into `json`.
78+
4. Run `make i18n` to convert your `po` files into `json`.
7979
Volto loads these `json` files to provide translated text strings in the interface.
8080

8181
5. Commit your changes, and create a pull request.

docs/i18n-l10n/resync-translations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ When the release manager requests to create a new `plone.app.locales` release, t
103103
## Resync translations in Volto
104104

105105
In Volto, the GitHub test setup warns a developer when their new contributions require regenerating the translation file.
106-
This is done by running a yarn script as follows:
106+
This is done by running a make command as follows:
107107

108108
```shell
109-
yarn i18n
109+
make i18n
110110
```
111111

112112
This will update the PO files and will leave them ready to be translated by translators.
@@ -116,9 +116,9 @@ This will update the PO files and will leave them ready to be translated by tran
116116

117117
## Create a release of Volto with the new translations
118118

119-
The Volto release process requires running the same yarn script as in the previous step.
119+
The Volto release process requires running the same make command as in the previous step.
120120
It will convert the translations in PO files to the JSON files that Volto uses to render the user interface.
121121

122122
```shell
123-
yarn i18n
123+
make i18n
124124
```

0 commit comments

Comments
 (0)