Update TribesList.js #144
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: Extract new translation strings | |
on: | |
push: | |
branches: [master] | |
jobs: | |
i18n: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Install npm v7 | |
run: | | |
npm --global install npm@latest-7 | |
- name: Cache Node.js modules | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.node-gyp | |
~/.npm | |
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.OS }}-node- | |
${{ runner.OS }}- | |
- name: Install dependencies | |
run: npm ci | |
- name: Extract strings | |
run: | | |
npm run i18n:extract | |
- name: Reformat plural strings for Weblate | |
run: | | |
npm run i18n:fix-weblate | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v7 | |
with: | |
default_author: github_actions | |
message: 'Exctract locales [skip ci]' | |
add: 'public/locales/en/*.json' |