Skip to content

Show API documentation at /api/ (#2650) #129

Show API documentation at /api/ (#2650)

Show API documentation at /api/ (#2650) #129

Workflow file for this run

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: 14
- 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'