Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
55b6b82c5c | |||
775d597058 | |||
4af83a6e39 | |||
1554e4ba7f | |||
f217ae2364 |
4 changed files with 44 additions and 26 deletions
|
@ -1,4 +1,4 @@
|
|||
pipeline:
|
||||
steps:
|
||||
code-style:
|
||||
image: composer
|
||||
commands:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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/"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"neos": {
|
||||
"package-key": "DigiComp.FlowTranslationEndpoint"
|
||||
"config": {
|
||||
"sort-packages": true,
|
||||
"platform-check": true
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-develop": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ferdinand Kuhl",
|
||||
"email": "f.kuhl@digital-competence.de",
|
||||
"homepage": "https://www.digital-competence.de",
|
||||
"role": "Developer"
|
||||
"neos": {
|
||||
"package-key": "DigiComp.FlowTranslationEndpoint"
|
||||
}
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"homepage": "https://git.digital-competence.de/Packages/DigiComp.FlowTranslationEndpoint",
|
||||
"keywords": [
|
||||
"Neos",
|
||||
"Flow",
|
||||
"translation",
|
||||
"xliff",
|
||||
"json"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue