Files
jbpenrath 032501eb5f 🔧(crowdin) setup a crowdin workflow
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.
2025-10-06 10:06:14 +02:00

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,
}
]