This commit is contained in:
Tara Sophia Roshan 2024-04-24 15:38:21 -07:00 committed by GitHub
commit b4f2d07937
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 38 additions and 1 deletions

37
.github/workflows/update_locales.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: Update locales
on:
push:
# run this workflow when someone pushes to the l10n_main branch
branches: [ l10n_main ]
jobs:
update_locales:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
# Create the mock file for the update_locales command to work, otherwise
# we'll get an 'no such file' error
- name: Create mock .env file
run: echo "DEBUG=true" > .env
- name: Run update_locales command
run: ./bw-dev update_locales
- name: Create commit
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git add -A
git commit -a -m "[GitHub Action] Update locales"
- name: Push to main branch
# we rebase it first, in case there was a push to main while running
# update_locales above
run: |
git pull --rebase
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -2894,7 +2894,7 @@ msgstr "Non è un file di csv valido"
msgid "Currently, you are allowed to import %(display_size)s books every %(import_limit_reset)s day."
msgid_plural "Currently, you are allowed to import %(display_size)s books every %(import_limit_reset)s days."
msgstr[0] "Attualmente, puoi importare libri %(display_size)s ogni giorno %(import_limit_reset)s."
msgstr[1] "Al momento puoi importare %(import_size_limit)s libri ogni %(import_limit_reset)s giorni."
msgstr[1] "Al momento puoi importare %(display_size)s libri ogni %(import_limit_reset)s giorni."
#: bookwyrm/templates/import/import.html:26
#, python-format