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

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

View file

@ -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

View file

@ -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

View file

@ -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%'