Commit 63ac389
committed
fix: Update Crowdin configuration to prevent directory prefixing
Problem:
- PR #45 created translations in wrong structure: {lang}/Resources/Private/Language/
- Should be: Resources/Private/Language/{lang}.{filename}.xlf
Root cause:
- Missing preserve_hierarchy directive caused Crowdin to prepend language codes
as base directories
- Relative paths instead of absolute paths
- Not using proper placeholders for dynamic file handling
Changes:
- Added preserve_hierarchy: 1 to prevent language directory prefixing
- Updated to wildcard pattern with absolute paths (/Resources/...)
- Implemented %original_path% and %original_file_name% placeholders
- Added ignore directive to exclude existing translations from re-translation
This ensures future Crowdin syncs create translations at:
Resources/Private/Language/{lang}.{filename}.xlf ✓
Not at:
{lang}/Resources/Private/Language/{lang}.{filename}.xlf ✗
Note: Filename remains crowdin.yml (Crowdin default) - .crowdin.yml would
require additional configuration in Crowdin project settings.
Reference: https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Localization/TranslationServer/Crowdin/1 parent 520a30f commit 63ac389
1 file changed
+14
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
4 | 14 | | |
5 | 15 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments