You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add ``babel-plugin-react-intl`` to your dev dependencies::
122
+
* Add ``babel-plugin-formatjs`` to your dev dependencies::
123
123
124
-
npm install babel-plugin-react-intl --save-dev
124
+
npm install babel-plugin-formatjs --save-dev
125
125
126
126
* Add this to ``.babelrc``::
127
127
128
128
"env": {
129
129
"i18n": {
130
130
"plugins": [
131
131
["react-intl", {
132
-
"messagesDir": "./temp/babel-plugin-react-intl",
132
+
"messagesDir": "./temp/babel-plugin-formatjs",
133
133
"moduleSourceName": "@edx/frontend-platform/i18n"
134
134
}]
135
135
]
@@ -138,7 +138,7 @@ The pipeline jobs live in the `ecommerce-scripts <https://github.com/openedx/eco
138
138
139
139
Then:
140
140
141
-
* Confirm that running ``make i18n.extract`` creates a lot of ``.json`` files in ``your-repo/temp/babel-plugin-react-intl/`` .
141
+
* Confirm that running ``make i18n.extract`` creates a lot of ``.json`` files in ``your-repo/temp/babel-plugin-formatjs/`` .
142
142
143
143
* Add ``temp`` and ``src/i18n/transifex_input.json`` to your ``.gitignore``.
144
144
@@ -184,7 +184,7 @@ Create your pipeline job on Jenkins
184
184
185
185
* Run the script that you try to create the jobs.
186
186
187
-
* 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.
187
+
* 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.
188
188
189
189
* 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.
0 commit comments