Fix isRtl function
This commit is contained in:
parent
d2a965cfa3
commit
2da0978386
@ -137,7 +137,9 @@ export const i18n = createI18n({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const isRtl = (locale?: string) => {
|
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) {
|
export function setLocale(locale: string) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user