Bump lit from 3.1.4 to 3.2.1 #924
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/[email protected] | |
with: | |
provider: 'google-official' | |
subscriptionKey: '${{ secrets.TRANSLATOR_SUBSCRIPTION_KEY }}' | |
filePath: './src/localize/languages/en.json' | |
from: 'en' | |
to: 'cs,da,de,es,fr,hu,it,nb,nl,pl,pt,ru,sk,uk,zh' | |
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/[email protected] | |
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}} |