mirror of
https://github.com/pelican-dev/panel.git
synced 2026-07-15 21:48:08 +03:00
Fix Crowdin language mapping and integrate automated Pint formatting (#2383)
This commit is contained in:
22
.github/workflows/download-translations.yml
vendored
22
.github/workflows/download-translations.yml
vendored
@@ -24,13 +24,23 @@ jobs:
|
|||||||
upload_translations: false
|
upload_translations: false
|
||||||
download_translations: true
|
download_translations: true
|
||||||
export_only_approved: true
|
export_only_approved: true
|
||||||
localization_branch_name: i18n_crowdin_translations
|
push_translations: false
|
||||||
create_pull_request: true
|
create_pull_request: false
|
||||||
pull_request_title: 'New Crowdin Translations'
|
|
||||||
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
|
|
||||||
pull_request_base_branch_name: 'main'
|
|
||||||
crowdin_branch_name: main
|
crowdin_branch_name: main
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||||
|
|
||||||
|
- name: Run Laravel Pint
|
||||||
|
uses: aglipanci/laravel-pint-action@8eedec46a1856977c41667f9c66d5562fa3f9c08 # 2.4
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
commit-message: 'chore: update translations and format with pint'
|
||||||
|
title: 'New Crowdin Translations'
|
||||||
|
body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action), formatted by Laravel Pint.'
|
||||||
|
branch: 'i18n_crowdin_translations'
|
||||||
|
base: 'main'
|
||||||
11
crowdin.yml
11
crowdin.yml
@@ -6,9 +6,8 @@ preserve_hierarchy: true
|
|||||||
files:
|
files:
|
||||||
- source: "/lang/en/**/*.php"
|
- source: "/lang/en/**/*.php"
|
||||||
translation: "/lang/%two_letters_code%/**/%original_file_name%"
|
translation: "/lang/%two_letters_code%/**/%original_file_name%"
|
||||||
|
languages_mapping:
|
||||||
languages_mapping:
|
two_letters_code:
|
||||||
two_letters_code:
|
'zh-CN': 'zh_CN'
|
||||||
'zh-CN': 'zh_CN'
|
'zh-TW': 'zh_TW'
|
||||||
'zh-TW': 'zh_TW'
|
'pt-BR': 'pt_BR'
|
||||||
'pt-BR': 'pt_BR'
|
|
||||||
Reference in New Issue
Block a user