Skip to content

Commit d446f45

Browse files
author
Konrad Michalik
authored
Merge pull request #10 from xima-media/composer-translation-validator
chore: add composer translation validator
2 parents d4e922b + 107da53 commit d446f45

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

Resources/Private/Language/de.locallang.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<body>
66
<trans-unit id="internal_news_notify_note">
77
<source />
8-
<target><![CDATA[The next date for the internal news "%s" is today: %s]]></target>
8+
<target>Der nächste Termin für die internen News steht kurz bevor.</target>
99
</trans-unit>
1010
<trans-unit id="widgets.internalNews.news.title">
1111
<source />

Resources/Private/Language/de.locallang_db.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
<source />
3636
<target>Termine</target>
3737
</trans-unit>
38+
<trans-unit id="tx_ximatypo3internalnews_domain_model_news.categories">
39+
<source />
40+
<target>Kategorien</target>
41+
</trans-unit>
3842
<trans-unit id="tx_ximatypo3internalnews_domain_model_news.be_group">
3943
<source />
4044
<target>Backend Nutzer Gruppen</target>

Resources/Private/Language/locallang.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<header/>
55
<body>
66
<trans-unit id="internal_news_notify_note">
7-
<source><![CDATA[The next date for the internal news is starting soon]]></source>
7+
<source>The next date for the internal news is starting soon</source>
88
</trans-unit>
99
<trans-unit id="widgets.internalNews.news.title">
1010
<source>Internal News</source>

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"ergebnis/composer-normalize": "^2.44",
3030
"helhum/typo3-console": "^7.0 || ^8.1",
3131
"helmich/typo3-typoscript-lint": "^3.2",
32+
"move-elevator/composer-translation-validator": "^1.1",
3233
"phpstan/phpstan-deprecation-rules": "^1.0 || ^2.0",
3334
"phpstan/phpstan-phpunit": "^1.0 || ^2.0",
3435
"phpstan/phpstan-strict-rules": "^1.0 || ^2.0",
@@ -52,6 +53,7 @@
5253
"eliashaeussler/version-bumper": true,
5354
"ergebnis/composer-normalize": true,
5455
"helhum/dotenv-connector": true,
56+
"move-elevator/composer-translation-validator": true,
5557
"php-http/discovery": true,
5658
"typo3/class-alias-loader": true,
5759
"typo3/cms-composer-installers": true
@@ -79,11 +81,13 @@
7981
"@lint:composer",
8082
"@lint:editorconfig",
8183
"@lint:php",
84+
"@lint:language",
8285
"@lint:typoscript",
8386
"@lint:yaml"
8487
],
8588
"lint:composer": "@fix:composer --dry-run",
8689
"lint:editorconfig": "ec --git-only",
90+
"lint:language": "@composer validate-translations ./Resources/Private/Language",
8791
"lint:php": "@fix:php --dry-run",
8892
"lint:typoscript": "typoscript-lint --fail-on-warnings",
8993
"lint:yaml": "find ./ ! -path './vendor/*' ! -path '*/node_modules/*' ! -path './.Build/*' ! -path './xima_typo3_content_planner/*' \\( -name '*.yaml' -o -name '*.yml' \\) -exec yaml-lint {} +",

0 commit comments

Comments
 (0)