Skip to content

Commit

Permalink
Add Italian translation. Closes #596
Browse files Browse the repository at this point in the history
  • Loading branch information
tvlooy committed Dec 2, 2024
1 parent b382273 commit eab4587
Show file tree
Hide file tree
Showing 4 changed files with 1,030 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
locale: en
app.supported_locales: ['en', 'fr', 'de', 'es', 'hu', 'nl', 'no', 'pl', 'pt']
app.supported_locales: ['en', 'de', 'es', 'fr', 'hu', 'it', 'nl', 'no', 'pl', 'pt']
supported_locales:
- de
- en
- es
- fr
- hu
- it
- nl
- no
- pl
Expand All @@ -22,6 +23,7 @@ parameters:
es: Español
fr: Français
hu: Magyar
it: Italiano
nl: Nederlands
no: Norsk
pl: Polskie
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/HomepageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class HomepageController extends AbstractController
{
#[Route('/{_locale<en|fr|de|es|hu|nl|no|pl|pt>}', name: 'homepage', defaults: ['_locale' => 'en'], methods: ['GET'])]
#[Route('/{_locale<en|de|es|fr|hu|it|nl|no|pl|pt>}', name: 'homepage', defaults: ['_locale' => 'en'], methods: ['GET'])]
public function indexAction(): Response
{
$partyForm = $this->createForm(PartyType::class, new Party(), [
Expand Down
Loading

0 comments on commit eab4587

Please sign in to comment.