From fcf00cbab4917f0205fe72db0b9f4253146c201a Mon Sep 17 00:00:00 2001 From: florimondmanca Date: Thu, 23 May 2024 16:20:05 +0200 Subject: [PATCH] Use 0/1/Inf, move idiomorph to dev deps --- package-lock.json | 5 +++-- package.json | 2 +- .../Fragments/GetCityCompletionFragmentControllerTest.php | 2 +- translations/messages.fr.xlf | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 62336d5da..bc6de989b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,6 @@ "": { "dependencies": { "@gouvfr/dsfr": "^1.7.2", - "idiomorph": "^0.3.0", "remixicon": "^2.5.0" }, "devDependencies": { @@ -22,6 +21,7 @@ "dotenv": "^16.3.1", "file-loader": "^6.0.0", "husky": "^8.0.3", + "idiomorph": "^0.3.0", "purgecss-webpack-plugin": "^5.0.0", "regenerator-runtime": "^0.13.9", "sass": "^1.56.1", @@ -4945,7 +4945,8 @@ "node_modules/idiomorph": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/idiomorph/-/idiomorph-0.3.0.tgz", - "integrity": "sha512-UhV1Ey5xCxIwR9B+OgIjQa+1Jx99XQ1vQHUsKBU1RpQzCx1u+b+N6SOXgf5mEJDqemUI/ffccu6+71l2mJUsRA==" + "integrity": "sha512-UhV1Ey5xCxIwR9B+OgIjQa+1Jx99XQ1vQHUsKBU1RpQzCx1u+b+N6SOXgf5mEJDqemUI/ffccu6+71l2mJUsRA==", + "dev": true }, "node_modules/immutable": { "version": "4.3.6", diff --git a/package.json b/package.json index 18a34c5f8..a0ac1b603 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dotenv": "^16.3.1", "file-loader": "^6.0.0", "husky": "^8.0.3", + "idiomorph": "^0.3.0", "purgecss-webpack-plugin": "^5.0.0", "regenerator-runtime": "^0.13.9", "sass": "^1.56.1", @@ -33,7 +34,6 @@ }, "dependencies": { "@gouvfr/dsfr": "^1.7.2", - "idiomorph": "^0.3.0", "remixicon": "^2.5.0" }, "engines": { diff --git a/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetCityCompletionFragmentControllerTest.php b/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetCityCompletionFragmentControllerTest.php index c08c4c405..770cc86c3 100644 --- a/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetCityCompletionFragmentControllerTest.php +++ b/tests/Integration/Infrastructure/Controller/Regulation/Fragments/GetCityCompletionFragmentControllerTest.php @@ -38,7 +38,7 @@ public function testCityAutoCompleteNoResults(): void $this->assertResponseStatusCodeSame(200); $this->assertSecurityHeaders(); - $this->assertSame('0 résultat trouvé', $crawler->filter('template[id="status"]')->text()); + $this->assertSame('Aucun résultat trouvé', $crawler->filter('template[id="status"]')->text()); $options = $crawler->filter('li[role="option"]'); $this->assertSame(0, $options->count()); } diff --git a/translations/messages.fr.xlf b/translations/messages.fr.xlf index 4b898e7c5..3861c17c7 100644 --- a/translations/messages.fr.xlf +++ b/translations/messages.fr.xlf @@ -170,7 +170,7 @@ common.autocomplete.results_count - %count% résultat trouvé|%count% résultats trouvés + {0} Aucun résultat trouvé | {1} 1 résultat trouvé | ]1,Inf[ %count% résultats trouvés common.autocomplete.status.loading