-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
506 changed files
with
48,291 additions
and
8,784 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,74 @@ | ||
name: Crowdin Copy and Create PR | ||
|
||
on: | ||
workflow_dispatch: | ||
# push: | ||
# paths: [ 'docs/**', 'platforms/**','i18n/en/**', 'src/pages/**', 'meeting-notes/**' ] | ||
# branches: [ main ] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
crowdin_copy_and_pr: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout main branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
|
||
- name: Merge latest changes from origin/main | ||
run: | | ||
git fetch origin | ||
git checkout main | ||
git merge origin/main | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run crowdin:fix | ||
run: yarn run crowdin:fix | ||
|
||
- name: Configure Git | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
- name: Check for changes | ||
id: changes | ||
run: | | ||
if git diff --quiet; then | ||
echo "changes=false" >> $GITHUB_OUTPUT | ||
else | ||
echo "changes=true" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Create and push changes to branch | ||
if: steps.changes.outputs.changes == 'true' | ||
run: | | ||
BRANCH_NAME="crowdin-copy-changes" | ||
git push origin --delete $BRANCH_NAME || true | ||
git checkout -b $BRANCH_NAME | ||
git add . | ||
git commit -m "chore: Copy ignored files using crowdin:fix" | ||
git push --force --set-upstream origin $BRANCH_NAME | ||
echo "branch_name=$BRANCH_NAME" >> $GITHUB_ENV | ||
- name: Install GitHub CLI | ||
if: steps.changes.outputs.changes == 'true' | ||
run: sudo apt-get install -y gh | ||
|
||
- name: Create Pull Request | ||
if: steps.changes.outputs.changes == 'true' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh pr create --repo ${{ github.repository }} --base main --head ${{ env.branch_name }} --title "Copy ignored files using crowdin:fix" --body "This PR was created by GitHub Actions to copy ignored files using the crowdin:fix command." |
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,37 @@ | ||
name: Crowdin Download Action | ||
|
||
on: | ||
workflow_dispatch: | ||
### Schedule currently disabled ### | ||
# schedule: | ||
# - cron: '0 9 * * *' | ||
# - cron: '0 13 * * *' | ||
# - cron: '0 17 * * *' | ||
|
||
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 | ||
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: '669532' | ||
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
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,36 @@ | ||
name: Crowdin Upload | ||
|
||
on: | ||
workflow_dispatch: | ||
# push: | ||
# branches: [ main ] | ||
|
||
jobs: | ||
crowdin-upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Docs Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
cache: 'yarn' | ||
cache-dependency-path: '**/yarn.lock' | ||
|
||
- name: Install Dependencies | ||
run: yarn --prefer-offline | ||
|
||
- name: Write Translations | ||
run: yarn write-translations | ||
|
||
- name: Crowdin push | ||
uses: crowdin/github-action@v2 | ||
with: | ||
upload_sources: true | ||
upload_translations: false | ||
download_translations: false | ||
env: | ||
CROWDIN_PROJECT_ID: '669532' | ||
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
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,62 @@ | ||
# Crowdin Translator How-To | ||
|
||
Stellar Developer Docs use [Crowdin](https://crowdin.com/) for localization. This document provides steps and resources for managing Stellar Docusaurus Crowdin translations as a Crowdin user with a Translator role. | ||
|
||
--- | ||
|
||
## Overview | ||
|
||
As new English source files are added to the Stellar Docusaurus Documentation GitHub repository, they are automatically uploaded to Crowdin. From there, an automated AI translation is run on the files to translate them into other target languages (currently only Spanish at the time of writing). | ||
|
||
In cases where the AI translation is inaccurate, a user with the Translator role will need to update and edit the translations manually. | ||
|
||
--- | ||
|
||
## Translator User | ||
|
||
To get started, you need to set up a Crowdin account and be added to the Stellar Documents Crowdin project. This involves creating a Crowdin user account and requesting access to the project from a project owner. | ||
|
||
For more details, see the following documentation: | ||
[Create an Account](https://support.crowdin.com/for-translators/#create-an-account) | ||
|
||
--- | ||
|
||
## Editor | ||
|
||
As a translator, you will have access to the editor, where you can make changes to the content. | ||
|
||
**Note:** Crowdin uses the term "strings" for content being translated. | ||
|
||
You can access all translated documents via the Crowdin dashboard. From there, you can view each document in the editor. | ||
|
||
For more details on working within the editor, see the following documentation: | ||
[Working in the Editor](https://support.crowdin.com/for-translators/#working-in-the-editor) | ||
|
||
For a more in-depth look, see: | ||
[Online Editor Guide](https://support.crowdin.com/online-editor/) | ||
|
||
--- | ||
|
||
## Glossary | ||
|
||
For common words or phrases, it is good practice to add them to the glossary. The glossary helps the AI translator provide more accurate translations. | ||
|
||
Examples include: | ||
- Words or phrases that need to be translated in a specific manner. | ||
- Words or phrases that should not be translated at all. | ||
|
||
For more information, see the following documentation: | ||
[Glossary](https://support.crowdin.com/glossary/) | ||
|
||
--- | ||
|
||
## Approving Translations | ||
|
||
As documents are translated, they will be assigned a translation percentage highlighted in blue. | ||
|
||
To manage files that have been checked or proofread, it is recommended to mark them as approved. Approved files will display an approved percentage highlighted in green. | ||
|
||
**Note:** All translations are synced with the Stellar Docusaurus Documentation after they are reviewed and approved. Approval is a check for managing translation files that have been edited. | ||
|
||
For more information on approving translations, see the following documentation: | ||
[Proofreading](https://support.crowdin.com/online-editor/#proofreading) |
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
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
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
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.