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:
parent
af7d493b80
commit
96d7295e55
4 changed files with 17 additions and 19 deletions
3
.github/workflows/changesets.yml
vendored
3
.github/workflows/changesets.yml
vendored
|
@ -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
|
||||||
|
|
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
1
.github/workflows/website.yml
vendored
1
.github/workflows/website.yml
vendored
|
@ -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
|
||||||
|
|
31
crowdin.yaml
31
crowdin.yaml
|
@ -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%'
|
||||||
}
|
|
||||||
]
|
|
Loading…
Reference in a new issue