Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,30 @@ Step-by-step instructions for GitHub
ignore:
- /**/%two_letters_code%.%original_file_name%

If you provide a :file:`labels.xlf` file for the
:ref:`site settings <site-settings-definition-translation>`,
the `/Configuration/Sets/` folder should be added:

.. code-block:: yaml
:caption: EXT:my_extension/.crowdin.yml

preserve_hierarchy: 1
files:
- source: /Configuration/Sets/*/*.xlf
translation: /%original_path%/%two_letters_code%.%original_file_name%
ignore:
- /**/%two_letters_code%.%original_file_name%
- source: /Resources/Private/Language/*.xlf
translation: /%original_path%/%two_letters_code%.%original_file_name%
ignore:
- /**/%two_letters_code%.%original_file_name%

.. note::
If you use the configuration with the :file:`/Configuration/Sets/*/*.xlf`
source and do not provide labels, the GitHub action returns an error.
However, your files from the :file:`/Resources/Private/Language/` folder
will still be uploaded.

2. Connect your GitHub repository

In order for Crowdin to manage translations, you need to somehow push the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ For example, the label of the setting is simply `label` in the XLF file.
<source>My Custom Set</source>
</trans-unit>

.. important::
To translate the labels of your settings using Crowdin, you need to adjust
your extension's
:ref:`Crowdin configuration file <crowdin-extension-integration-github-configure>`.

.. _site-settings-definition-translation-category:

Translating category labels
Expand Down