mirror of
https://github.com/suitenumerique/messages.git
synced 2026-09-13 05:17:46 +02:00
Enable commands to upload and download translation file to/from crowdin. Setup ci workflow to automatically update translation files on each merge on main branch. Also add a worklow that can be manually triggered which is in charge to update application translation files then open a PR.
36 lines
830 B
YAML
36 lines
830 B
YAML
#
|
|
# Your crowdin's credentials
|
|
#
|
|
api_token_env: CROWDIN_PERSONAL_TOKEN
|
|
project_id_env: CROWDIN_PROJECT_ID
|
|
base_path_env: CROWDIN_BASE_PATH
|
|
|
|
#
|
|
# Choose file structure in crowdin
|
|
# e.g. true or false
|
|
#
|
|
preserve_hierarchy: true
|
|
|
|
#
|
|
# Files configuration
|
|
#
|
|
files: [
|
|
{
|
|
source : "/backend/locale/django.pot",
|
|
dest: "/backend.pot",
|
|
translation : "/backend/locale/%locale_with_underscore%/LC_MESSAGES/django.po"
|
|
},
|
|
{
|
|
source: "/frontend/public/locales/common/en-US.json",
|
|
dest: "/frontend-common.json",
|
|
translation: "/frontend/public/locales/common/%locale%.json",
|
|
skip_untranslated_strings: true,
|
|
},
|
|
{
|
|
source: "/frontend/public/locales/roles/en-US.json",
|
|
dest: "/frontend-roles.json",
|
|
translation: "/frontend/public/locales/roles/%locale%.json",
|
|
skip_untranslated_strings: true,
|
|
}
|
|
]
|