From 96d7295e55fde7dc82c6593f2cc5433a3a297c0b Mon Sep 17 00:00:00 2001 From: Juan Picado Date: Sat, 1 Oct 2022 20:18:43 +0200 Subject: [PATCH] chore: crowdin mapping (#3414) * chore: crowdin mapping * Update docusaurus.config.js * Update docusaurus.config.js --- .github/workflows/changesets.yml | 3 +-- .github/workflows/ci.yml | 1 - .github/workflows/website.yml | 1 - crowdin.yaml | 31 ++++++++++++++++--------------- 4 files changed, 17 insertions(+), 19 deletions(-) diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml index ee586e9d1..386aceab0 100644 --- a/.github/workflows/changesets.yml +++ b/.github/workflows/changesets.yml @@ -47,8 +47,7 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }} - name: crowdin download - env: - CROWDIN_VERDACCIO_PROJECT_ID: ${{ secrets.CROWDIN_VERDACCIO_PROJECT_ID }} + env: CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }} CONTEXT: production run: pnpm crowdin:download diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f53443ba..117fbca08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -162,7 +162,6 @@ jobs: run: pnpm write-translations --filter ...@verdaccio/website - name: sync env: - CROWDIN_VERDACCIO_PROJECT_ID: ${{ secrets.CROWDIN_VERDACCIO_PROJECT_ID }} CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }} CONTEXT: production run: pnpm crowdin:sync diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index e0f4cad9a..384fd51a2 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -54,7 +54,6 @@ jobs: - name: Build Production if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch' env: - CROWDIN_VERDACCIO_PROJECT_ID: ${{ secrets.CROWDIN_VERDACCIO_PROJECT_ID }} CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }} SENTRY_KEY: ${{ secrets.SENTRY_KEY }} CONTEXT: production diff --git a/crowdin.yaml b/crowdin.yaml index b1f6f0ddd..d766a80b1 100644 --- a/crowdin.yaml +++ b/crowdin.yaml @@ -1,20 +1,21 @@ -project_id_env: CROWDIN_VERDACCIO_PROJECT_ID +project_id: 295539 api_token_env: CROWDIN_VERDACCIO_API_KEY +# token local testing +# api_token: token_secret preserve_hierarchy: true files: - [ - { - source: 'packages/plugins/ui-theme/src/i18n/crowdin/**/*', - translation: '/packages/plugins/ui-theme/src/i18n/download_translations/%locale%/**/%original_file_name%', - }, - { - source: '/website/i18n/en/**/*', - translation: '/website/i18n/%locale%/**/%original_file_name%', - }, - { - source: '/website/docs/**/*', - translation: '/website/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%', - } - ] + - + source: 'packages/plugins/ui-theme/src/i18n/crowdin/**/*' + translation: '/packages/plugins/ui-theme/src/i18n/download_translations/%locale%/**/%original_file_name%' + - + source: '/website/i18n/en/**/*' + translation: '/website/i18n/%locale%/**/%original_file_name%' + - + source: '/website/docs/**/*' + translation: '/website/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%' + - + source: '/website/versioned_docs/**/*' + translation: '/website/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%' + \ No newline at end of file