Skip to content

Commit

Permalink
docs: update i18n file (#602)
Browse files Browse the repository at this point in the history
* refactor: update i18n file

* refactor: update i18n
  • Loading branch information
Mashal-m authored Dec 22, 2023
1 parent 41faa1a commit dd1053d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/how_tos/i18n.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,17 @@ The pipeline jobs live in the `ecommerce-scripts <https://github.com/openedx/eco

"i18n_extract": "BABEL_ENV=i18n babel src --quiet > /dev/null"

* Add ``babel-plugin-react-intl`` to your dev dependencies::
* Add ``babel-plugin-formatjs`` to your dev dependencies::

npm install babel-plugin-react-intl --save-dev
npm install babel-plugin-formatjs --save-dev

* Add this to ``.babelrc``::

"env": {
"i18n": {
"plugins": [
["react-intl", {
"messagesDir": "./temp/babel-plugin-react-intl",
"messagesDir": "./temp/babel-plugin-formatjs",
"moduleSourceName": "@edx/frontend-platform/i18n"
}]
]
Expand All @@ -138,7 +138,7 @@ The pipeline jobs live in the `ecommerce-scripts <https://github.com/openedx/eco

Then:

* Confirm that running ``make i18n.extract`` creates a lot of ``.json`` files in ``your-repo/temp/babel-plugin-react-intl/`` .
* Confirm that running ``make i18n.extract`` creates a lot of ``.json`` files in ``your-repo/temp/babel-plugin-formatjs/`` .

* Add ``temp`` and ``src/i18n/transifex_input.json`` to your ``.gitignore``.

Expand Down Expand Up @@ -184,7 +184,7 @@ Create your pipeline job on Jenkins

* Run the script that you try to create the jobs.

* Examples: ``python transifex/pull.py https://github.com/openedx/edx-platform.git edx/sustaining-team``. You might be required to setup environment variable ``GITHUB_ACCESS_TOKEN`` with your personal github account.
* Examples: ``python transifex/pull.py https://github.com/openedx/edx-platform.git``. You might be required to setup environment variable ``GITHUB_ACCESS_TOKEN`` with your personal github account.

* For ``push_translations``, you also need transifex authentication. This action will try to create project resource if it isn't existed yet. If you don't have permission, it will fail.

Expand Down

0 comments on commit dd1053d

Please sign in to comment.