chore: add translations (#10098)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
committed by
GitHub
parent
1b98f40f17
commit
d4b23e020a
15
.github/workflows/i18n-force-pull.yml
vendored
15
.github/workflows/i18n-force-pull.yml
vendored
@ -55,4 +55,17 @@ jobs:
|
||||
CROWDIN_PROJECT_ID: '1'
|
||||
|
||||
# Visit https://crowdin.com/settings#api-key to create this token
|
||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||
|
||||
- name: Compile and commit updated translations
|
||||
run: |
|
||||
git fetch origin chore/translations
|
||||
git checkout chore/translations
|
||||
npx nx run twenty-server:lingui:compile
|
||||
npx nx run twenty-emails:lingui:compile
|
||||
npx nx run twenty-front:lingui:compile
|
||||
git config --global user.name 'Crowdin Bot'
|
||||
git config --global user.email 'support+bot@crowdin.com'
|
||||
git add .
|
||||
git commit -m "chore: compile translations"
|
||||
git push origin chore/translations
|
||||
16
.github/workflows/i18n-pull.yaml
vendored
16
.github/workflows/i18n-pull.yaml
vendored
@ -71,4 +71,18 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
CROWDIN_PROJECT_ID: '1'
|
||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||
|
||||
- name: Compile and commit updated translations
|
||||
if: steps.compile_translations.outcome == 'failure'
|
||||
run: |
|
||||
git fetch origin chore/translations
|
||||
git checkout chore/translations
|
||||
npx nx run twenty-server:lingui:compile
|
||||
npx nx run twenty-emails:lingui:compile
|
||||
npx nx run twenty-front:lingui:compile
|
||||
git config --global user.name 'Crowdin Bot'
|
||||
git config --global user.email 'support+bot@crowdin.com'
|
||||
git add .
|
||||
git commit -m "chore: compile translations"
|
||||
git push origin chore/translations
|
||||
Reference in New Issue
Block a user