0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

chore: crowdin mapping (#3414)

* chore: crowdin mapping

* Update docusaurus.config.js

* Update docusaurus.config.js
This commit is contained in:
Juan Picado 2022-10-01 20:18:43 +02:00 committed by GitHub
parent af7d493b80
commit 96d7295e55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 19 deletions

View file

@ -47,8 +47,7 @@ jobs:
env: env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
- name: crowdin download - name: crowdin download
env: env:
CROWDIN_VERDACCIO_PROJECT_ID: ${{ secrets.CROWDIN_VERDACCIO_PROJECT_ID }}
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }} CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
CONTEXT: production CONTEXT: production
run: pnpm crowdin:download run: pnpm crowdin:download

View file

@ -162,7 +162,6 @@ jobs:
run: pnpm write-translations --filter ...@verdaccio/website run: pnpm write-translations --filter ...@verdaccio/website
- name: sync - name: sync
env: env:
CROWDIN_VERDACCIO_PROJECT_ID: ${{ secrets.CROWDIN_VERDACCIO_PROJECT_ID }}
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }} CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
CONTEXT: production CONTEXT: production
run: pnpm crowdin:sync run: pnpm crowdin:sync

View file

@ -54,7 +54,6 @@ jobs:
- name: Build Production - name: Build Production
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch' if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
env: env:
CROWDIN_VERDACCIO_PROJECT_ID: ${{ secrets.CROWDIN_VERDACCIO_PROJECT_ID }}
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }} CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
SENTRY_KEY: ${{ secrets.SENTRY_KEY }} SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
CONTEXT: production CONTEXT: production

View file

@ -1,20 +1,21 @@
project_id_env: CROWDIN_VERDACCIO_PROJECT_ID project_id: 295539
api_token_env: CROWDIN_VERDACCIO_API_KEY api_token_env: CROWDIN_VERDACCIO_API_KEY
# token local testing
# api_token: token_secret
preserve_hierarchy: true preserve_hierarchy: true
files: files:
[ -
{ source: 'packages/plugins/ui-theme/src/i18n/crowdin/**/*'
source: 'packages/plugins/ui-theme/src/i18n/crowdin/**/*', translation: '/packages/plugins/ui-theme/src/i18n/download_translations/%locale%/**/%original_file_name%'
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/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/docs/**/*', source: '/website/versioned_docs/**/*'
translation: '/website/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%', translation: '/website/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%'
}
]