Bump rollup-plugin-typescript2 from 0.35.0 to 0.36.0 #659
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Translate strings' | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
translate: | |
name: translate | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install localization package | |
run: npm install -g i18n-auto-translation | |
- name: Translate files | |
id: translate | |
uses: msnyder-msft/i18n-auto-translation-action@v1.0.0 | |
with: | |
provider: 'google-official' | |
subscriptionKey: '${{ secrets.TRANSLATOR_SUBSCRIPTION_KEY }}' | |
filePath: './src/localize/languages/en.json' | |
from: 'en' | |
to: 'da,de,es,fr,hu,it,nb,nl,pl,pt,sk' | |
debug: false | |
- name: Copy new strings to sub-locales | |
uses: ./.github/actions/copy-to-sub-locales | |
with: | |
mappings: pt=>pt-BR,nb=>nn-NO | |
- name: Get current branch name | |
id: branch_name | |
run: echo ::set-output name=current_branch::${GITHUB_REF#refs/*/} | |
- name: Commit changes | |
uses: devops-infra/action-commit-push@v0.9.2 | |
continue-on-error: true | |
with: | |
github_token: '${{ secrets.GITHUB_TOKEN }}' | |
commit_prefix: '[Auto] ' | |
commit_message: 'Adding updated localization files' | |
force: false | |
target_branch: ${{steps.vars.branch_name.current_branch}} |