From 2da09783860d33fbae414fed0baccf8298c5e5f0 Mon Sep 17 00:00:00 2001 From: Kloon ImKloon Date: Sun, 1 Oct 2023 14:30:46 +0200 Subject: [PATCH] Fix isRtl function --- frontend/src/i18n/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/i18n/index.ts b/frontend/src/i18n/index.ts index 68221d97..c5127f47 100644 --- a/frontend/src/i18n/index.ts +++ b/frontend/src/i18n/index.ts @@ -137,7 +137,9 @@ export const i18n = createI18n({ }); export const isRtl = (locale?: string) => { - return rtlLanguages.includes(locale || i18n.global.locale); + // see below + // @ts-ignore + return rtlLanguages.includes(locale || i18n.global.locale.value); }; export function setLocale(locale: string) {