Skip to content

Commit

Permalink
Use 0/1/Inf, move idiomorph to dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca committed May 23, 2024
1 parent 169ab29 commit fcf00cb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -33,7 +34,6 @@
},
"dependencies": {
"@gouvfr/dsfr": "^1.7.2",
"idiomorph": "^0.3.0",
"remixicon": "^2.5.0"
},
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down
2 changes: 1 addition & 1 deletion translations/messages.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
</trans-unit>
<trans-unit id="common.autocomplete.results_count">
<source>common.autocomplete.results_count</source>
<target>%count% résultat trouvé|%count% résultats trouvés</target>
<target>{0} Aucun résultat trouvé | {1} 1 résultat trouvé | ]1,Inf[ %count% résultats trouvés</target>
</trans-unit>
<trans-unit id="common.autocomplete.status.loading">
<source>common.autocomplete.status.loading</source>
Expand Down

0 comments on commit fcf00cb

Please sign in to comment.