Fix isRtl function

This commit is contained in:
Kloon ImKloon 2023-10-01 14:30:46 +02:00
parent d2a965cfa3
commit 2da0978386
No known key found for this signature in database
GPG Key ID: CCF1C86A995C5B6A

View File

@ -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) {