From 2c9061cc65c11ebc435582a3fcd10050d3820d9f Mon Sep 17 00:00:00 2001 From: benoit74 Date: Mon, 6 Jan 2025 08:49:53 +0000 Subject: [PATCH] Prepare i18n configuration for Hebrew Not yet made available in UI because coverage is insufficient --- api/src/zimitfrontend/constants.py | 2 +- ui/src/i18n.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/zimitfrontend/constants.py b/api/src/zimitfrontend/constants.py index 1ddc11d..4eb2ebd 100644 --- a/api/src/zimitfrontend/constants.py +++ b/api/src/zimitfrontend/constants.py @@ -112,4 +112,4 @@ class ApiConfiguration: locales_location = pathlib.Path(os.getenv("LOCALES_LOCATION", "../locales")) # list of rtl language codes - rtl_language_codes = ("fa",) + rtl_language_codes = ("fa", "he") diff --git a/ui/src/i18n.ts b/ui/src/i18n.ts index 36d3fb1..6c1361a 100644 --- a/ui/src/i18n.ts +++ b/ui/src/i18n.ts @@ -28,6 +28,7 @@ export const supportedLanguages: Language[] = [ { code: 'es', display: 'Español', rtl: false }, { code: 'fa', display: 'فارسی', rtl: true }, { code: 'fr', display: 'Français', rtl: false }, + // { code: 'he', display: 'עברית', rtl: true }, { code: 'id', display: 'Bahasa Indonesia', rtl: false }, // { code: 'ko', display: '한국어', rtl: false }, // { code: 'lb', display: 'Lëtzebuergesch', rtl: false },