From e4a199a88fb7b1a08db225a0b6f395bbcedd9f38 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 14 May 2024 08:50:06 +0200 Subject: [PATCH] new languages --- config/services.yaml | 2 +- src/Twig/AppExtension.php | 8 ++++++++ templates/nav.html.twig | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/config/services.yaml b/config/services.yaml index 00165fb..9932121 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -4,7 +4,7 @@ # Put parameters here that don't need to change on each machine where the app is deployed # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration parameters: - allowed_language: "fr|en|nl|pt-PT|pt-BR|de|ar|it|ca|ja" + allowed_language: "fr|en|nl|pt-PT|pt-BR|de|ar|it|ca|ja|pl|ru|uk" languages: "(%allowed_language%)?" services: # default configuration for services in *this* file diff --git a/src/Twig/AppExtension.php b/src/Twig/AppExtension.php index 0c975b6..b052154 100644 --- a/src/Twig/AppExtension.php +++ b/src/Twig/AppExtension.php @@ -66,6 +66,14 @@ class AppExtension extends AbstractExtension return "Català"; case "ar": return "العربية"; + case "ja": + return "日本語"; + case "pl": + return "Polski"; + case "ru": + return "Русский"; + case "uk": + return "Украïна"; } } diff --git a/templates/nav.html.twig b/templates/nav.html.twig index d5743b5..8ecb428 100644 --- a/templates/nav.html.twig +++ b/templates/nav.html.twig @@ -54,6 +54,9 @@ Brasil Català 日本語 + Polski + Русский + Украïна