Skip to content

Commit 8df75d4

Browse files
committed
feature #45421 [Translation] Add the possibilty to export xliff translation with the .xliff suffix (DanielBadura)
This PR was squashed before being merged into the 6.1 branch. Discussion ---------- [Translation] Add the possibilty to export xliff translation with the .xliff suffix | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Like the `YamlFileDumper` now the `XliffFileDumper` has the extension as an parameter. This enables the user to export xliff translation files with the suffix `.xlf` and `.xliff`. This is needed for example for the translation provider Lokalise and the GitLab integration for this provider. Commits ------- 08c4bc58b5 [Translation] Add the possibilty to export xliff translation with the .xliff suffix
2 parents 5dc1d10 + a27d33c commit 8df75d4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CHANGELOG
77
* Environment variable `SYMFONY_IDE` is read by default when `framework.ide` config is not set.
88
* Load PHP configuration files by default in the `MicroKernelTrait`
99
* Add `cache:pool:invalidate-tags` command
10+
* Add `XliffFileDumper` with `xliff` as the extension as a service
1011

1112
6.0
1213
---

Resources/config/translation.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@
114114
->set('translation.dumper.xliff', XliffFileDumper::class)
115115
->tag('translation.dumper', ['alias' => 'xlf'])
116116

117+
->set('translation.dumper.xliff.xliff', XliffFileDumper::class)
118+
->args(['xliff'])
119+
->tag('translation.dumper', ['alias' => 'xliff'])
120+
117121
->set('translation.dumper.po', PoFileDumper::class)
118122
->tag('translation.dumper', ['alias' => 'po'])
119123

0 commit comments

Comments
 (0)