@deriv-com/translations 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,6 +122,8 @@ There is a github action that syncs the translations from Crowdin to the CDN.
|
|
|
122
122
|
The action takes following inputs:
|
|
123
123
|
|
|
124
124
|
- `PROJECT_SOURCE_DIRECTORY`: Source directory of your project by default it is `src`
|
|
125
|
+
- `CROWDIN_BASE_PATH`: Base path of the translations in the Crowdin project by default it is `.`
|
|
126
|
+
- `CROWDIN_BASE_URL`: Base URL of the CDN where the translations are stored, default is `https://api.crowdin.com`
|
|
125
127
|
- `CROWDIN_BRANCH_NAME`: Running on production, test or staging etc
|
|
126
128
|
- `CROWDIN_PROJECT_ID`: Crowdin project ID which can be found in the crowdin project settings
|
|
127
129
|
- `CROWDIN_PERSONAL_TOKEN`: Crowdin personal token which can be found in the crowdin account settings
|
|
@@ -145,20 +147,22 @@ on:
|
|
|
145
147
|
jobs:
|
|
146
148
|
sync_translations:
|
|
147
149
|
runs-on: ubuntu-latest
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
150
|
+
steps:
|
|
151
|
+
- name: Checkout to main branch
|
|
152
|
+
uses: actions/checkout@v3
|
|
153
|
+
|
|
154
|
+
- name: Sync translations
|
|
155
|
+
uses: deriv-com/translations/.github/actions/extract_and_sync_translations@main
|
|
156
|
+
with:
|
|
157
|
+
CROWDIN_BRANCH_NAME: ${{ secrets.CROWDIN_BRANCH_NAME }}
|
|
158
|
+
CROWDIN_BASE_URL: ${{ env.CROWDIN_BASE_URL }}
|
|
159
|
+
CROWDIN_BASE_PATH: ${{ env.CROWDIN_BASE_PATH }}
|
|
160
|
+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
161
|
+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
|
162
|
+
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
|
|
163
|
+
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
|
|
164
|
+
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
|
|
165
|
+
R2_BUCKET_NAME: ${{ secrets.R2_BUCKET_NAME }}
|
|
162
166
|
```
|
|
163
167
|
|
|
164
168
|
## Contributing
|
package/package.json
CHANGED