Compare commits

...

5 commits
1.0.0 ... main

Author SHA1 Message Date
55b6b82c5c update structure of composer.json and update dependencies
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/1 Pipeline was successful
ci/woodpecker/push/functional-tests/2 Pipeline was successful
ci/woodpecker/push/functional-tests/3 Pipeline was successful
ci/woodpecker/push/functional-tests/4 Pipeline was successful
ci/woodpecker/tag/code-style Pipeline was successful
ci/woodpecker/tag/functional-tests/1 Pipeline was successful
ci/woodpecker/tag/functional-tests/2 Pipeline was successful
ci/woodpecker/tag/functional-tests/3 Pipeline was successful
ci/woodpecker/tag/functional-tests/4 Pipeline was successful
2024-10-11 14:38:39 +02:00
775d597058 Merge branch 'release/1.0.1'
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests Pipeline was successful
2023-09-29 17:34:04 +02:00
4af83a6e39 returns an array if there are multiple to be able to handle plural forms 2023-09-29 17:29:30 +02:00
1554e4ba7f adjust to woodpecker v1.0
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests Pipeline was successful
2023-08-15 14:19:25 +02:00
f217ae2364 Merge tag '1.0.0' into develop
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests Pipeline was successful
Tagging 1.0.0
2023-08-10 10:38:20 +02:00
4 changed files with 44 additions and 26 deletions

View file

@ -1,4 +1,4 @@
pipeline:
steps:
code-style:
image: composer
commands:

View file

@ -13,7 +13,7 @@ matrix:
- FLOW_VERSION: 8.3
PHP_VERSION: 8.1
pipeline:
steps:
functional-tests:
image: "thecodingmachine/php:${PHP_VERSION}-v4-cli"
environment:

View file

@ -157,7 +157,15 @@ class TranslationRequestMiddleware implements MiddlewareInterface
\ARRAY_FILTER_USE_KEY
);
$result[$package] += \array_map(
static fn($value) => $value[0]['target'],
static function ($value) {
if (\count($value) === 1) {
return $value[0]['target'];
}
return \array_map(
static fn ($value) => $value['target'],
$value
);
},
$matchingUnits
);
}

View file

@ -2,10 +2,33 @@
"name": "digicomp/flow-translation-endpoint",
"description": "A simple endpoint providing XLIFF translations as string",
"type": "neos-package",
"keywords": [
"Neos",
"Flow",
"translation",
"xliff",
"json"
],
"homepage": "https://git.digital-competence.de/Packages/DigiComp.FlowTranslationEndpoint",
"license": "MIT",
"authors": [
{
"name": "Ferdinand Kuhl",
"email": "f.kuhl@digital-competence.de",
"homepage": "https://www.digital-competence.de",
"role": "Developer"
}
],
"require": {
"php": ">=7.4.0",
"ext-json": "*",
"neos/flow": "^6.3.0 | ^7.0 | ^8.0",
"php": ">=7.4"
"neos/flow": "^6.3.0 || ^7.0 || ^8.0"
},
"require-dev": {
"mikey179/vfsstream": "^1.6.1",
"neos/buildessentials": "^7.0.0",
"phpunit/phpunit": "~8.5",
"vimeo/psalm": "~4.22.0"
},
"autoload": {
"psr-4": {
@ -17,29 +40,16 @@
"DigiComp\\FlowTranslationEndpoint\\Tests\\": "Tests/"
}
},
"config": {
"sort-packages": true,
"platform-check": true
},
"extra": {
"neos": {
"package-key": "DigiComp.FlowTranslationEndpoint"
},
"branch-alias": {
"dev-develop": "1.0.x-dev"
},
"neos": {
"package-key": "DigiComp.FlowTranslationEndpoint"
}
},
"authors": [
{
"name": "Ferdinand Kuhl",
"email": "f.kuhl@digital-competence.de",
"homepage": "https://www.digital-competence.de",
"role": "Developer"
}
],
"license": "MIT",
"homepage": "https://git.digital-competence.de/Packages/DigiComp.FlowTranslationEndpoint",
"keywords": [
"Neos",
"Flow",
"translation",
"xliff",
"json"
]
}
}