-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 2661 - Translation system - Files format (#4019) * 2661 - Remove metacache script command * 2661 - add 'other' translation file * 2661 - Add editUser files For spanish we have the editUser file. Adding this file to the rest of the languages for consistency. * 2661 - Translation System - JSON files (#4026) * 2661 - Remove nationalDataPoint from other.js * 2661 - Add json files * 2661 - Delete js translation files * 2661 - Update translation imports * 2661 - Add new line at the end of json files * 2661 - Add resolveJsonModule to tsconfig * 2661 - Convert js translation files to ts * 2661 - Update JSON imports for ts * 2661 - Translation System - Crowdin integration (#4031) * 2661 - Sort translation keys * 2661 - Add crowdin.yml * 2661 - Add translation workflows * 2661 - Add fra 2025 anchors file for Arabic * 2661 - Add Lang type to i18nFactory (#4037)
- Loading branch information
Showing
282 changed files
with
18,797 additions
and
16,842 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: New Crowdin translations PR | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
crowdin: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Synchronize with Crowdin | ||
uses: crowdin/github-action@v2 | ||
with: | ||
upload_sources: false | ||
upload_translations: false | ||
download_translations: true | ||
# Export options | ||
export_only_approved: true | ||
|
||
localization_branch_name: i18n_crowdin_translations | ||
create_pull_request: true | ||
pull_request_title: "New Crowdin translations" | ||
pull_request_body: "New Crowdin pull request with translations" | ||
pull_request_base_branch_name: "development" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Upload translation sources | ||
|
||
on: | ||
push: | ||
paths: ["src/i18n/resources/en/**/*.json", "!src/i18n/resources/en/panEuropean/**"] | ||
branches: [development] | ||
|
||
jobs: | ||
crowdin-upload-sources: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Crowdin push | ||
uses: crowdin/github-action@v2 | ||
with: | ||
upload_sources: true | ||
upload_translations: false | ||
download_translations: false | ||
env: | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"project_id_env": "CROWDIN_PROJECT_ID" | ||
"api_token_env": "CROWDIN_PERSONAL_TOKEN" | ||
"base_path": "." | ||
"base_url": "https://api.crowdin.com" | ||
"preserve_hierarchy": true | ||
|
||
files: | ||
[ | ||
{ | ||
"source": "/src/i18n/resources/en/**/*.json", | ||
"translation": "/src/i18n/resources/%two_letters_code%/%original_file_name%", | ||
"ignore": ["/src/i18n/resources/en/panEuropean/**"], | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.