Skip to content

Commit

Permalink
Merge branch 'release/3.8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
JackMorganNZ committed Aug 27, 2021
2 parents 2755b3c + 82e5f3b commit de1bebc
Show file tree
Hide file tree
Showing 202 changed files with 9,554 additions and 3,872 deletions.
41 changes: 0 additions & 41 deletions .arnold.yaml
Original file line number Diff line number Diff line change
@@ -1,44 +1,3 @@
translation:
django-message-file:
- "csfieldguide/locale/en/LC_MESSAGES/django.po"
- "csfieldguide/locale/en/LC_MESSAGES/djangojs.po"
commands:
start:
- ["./csfg", "dev", "build"]
- ["./csfg", "start"]
- ["./csfg", "update"]
end:
- ["./csfg", "end"]
makemessages:
- ["./csfg", "dev", "makemessages"]
branches:
# Branch for upload of source content to Crowdin
translation-source: develop
# Branch that new translations will be merged into
translation-target: develop
# Branch that updated English message PO files will be merged into
update-messages-target: develop
# Branch that new metadata for in context localisation will be merged into
in-context-target: develop
# Code for in-context localisation pseudo language on Crowdin
in-context-pseudo-language-crowdin: en-UD
# Code for in-context localisation pseudo language on website
in-context-pseudo-language-website: xx_LR
source-directories:
- csfieldguide/locale/{language}/LC_MESSAGES/
- csfieldguide/appendices/content/{language}/
- csfieldguide/chapters/content/{language}/
- csfieldguide/interactives/content/{language}/
file-types:
- .md
- .yaml
- .po
language-mapping-overrides:
# Crowdin to Django
zh-CN: zh_Hans
zh-TW: zh_Hant
en-UD: xx_LR # Pseudo language

broken-link-checker:
exclude-directories:
- .git/
Expand Down
6 changes: 3 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# csfieldguide/build/*
# csfieldguide/temp/*
# csfieldguide/node_modules/*
csfieldguide/build/
csfieldguide/node_modules/
artifacts/
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/csfieldguide/"
schedule:
interval: "daily"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
60 changes: 60 additions & 0 deletions .github/workflows/crowdin-actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Synchronise with Crowdin

on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

jobs:
synchronise-with-crowdin:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Upload or update source files to Crowdin
uses: crowdin/github-action@1.3.2
with:
upload_sources: true

- name: Download German translations
uses: crowdin/github-action@1.3.2
with:
upload_sources: false
download_translations: true
download_language: 'de'
skip_untranslated_files: true
export_only_approved: true
push_translations: true
commit_message: 'Update German Crowdin translations by Github Action'
localization_branch_name: translation-de
create_pull_request: true
pull_request_title: 'Update German language translations'
pull_request_body: 'This pull request will add/update German language files from Crowdin.'
pull_request_labels: 'internationalization'
pull_request_base_branch_name: develop
config: crowdin.yaml

- name: Download Spanish translations
uses: crowdin/github-action@1.3.2
with:
upload_sources: false
download_translations: true
download_language: 'es-ES'
skip_untranslated_files: true
export_only_approved: true
push_translations: true
commit_message: 'Update Spanish Crowdin translations by Github Action'
localization_branch_name: translation-es
create_pull_request: true
pull_request_title: 'Update Spanish language translations'
pull_request_body: 'This pull request will add/update Spanish language files from Crowdin.'
pull_request_labels: 'internationalization'
pull_request_base_branch_name: develop
config: crowdin.yaml
Loading

0 comments on commit de1bebc

Please sign in to comment.