forked from MetaMask/metamask-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* i18n setup * yarn.lock * add crowdin.yml files * fixes * comment out language toggle
- Loading branch information
1 parent
83ac24c
commit b8148f0
Showing
6 changed files
with
23,952 additions
and
1,650 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,32 @@ | ||
name: Crowdin Action | ||
|
||
on: | ||
push: | ||
path: [ "i18n/**" ] | ||
branches: [ main ] | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
crowdin: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Synchronize with Crowdin | ||
uses: crowdin/github-action@v1 | ||
with: | ||
upload_sources: true | ||
upload_translations: true | ||
download_translations: true | ||
localization_branch_name: l10n_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: 'main' | ||
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,16 @@ | ||
project_id_env: CROWDIN_PROJECT_ID | ||
api_token_env: CROWDIN_PERSONAL_TOKEN | ||
preserve_hierarchy: true | ||
files: | ||
# JSON translation files | ||
- source: /i18n/en/**/* | ||
translation: /i18n/%two_letters_code%/**/%original_file_name% | ||
# Docs Markdown files | ||
- source: /wallet/**/* | ||
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name% | ||
- source: /snaps/**/* | ||
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name% | ||
- source: /services/**/* | ||
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name% | ||
- source: /docs/**/* | ||
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name% |
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.