refactor: Fix eslint warnings (#3698)
* Update dependencies and remove typescript version pinning (fixed upstream) * Fix esling warnings (disabled any and script lang checks) Rewrote clipboard copy (Fixes #3407) Run prettier --------- Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
This commit is contained in:
@@ -142,7 +142,7 @@ export const i18n = createI18n({
|
||||
|
||||
export const isRtl = (locale?: string) => {
|
||||
// see below
|
||||
// @ts-ignore
|
||||
// @ts-expect-error incorrect type when legacy
|
||||
return rtlLanguages.includes(locale || i18n.global.locale.value);
|
||||
};
|
||||
|
||||
@@ -150,7 +150,7 @@ export function setLocale(locale: string) {
|
||||
dayjs.locale(locale);
|
||||
// according to doc u only need .value if legacy: false but they lied
|
||||
// https://vue-i18n.intlify.dev/guide/essentials/scope.html#local-scope-1
|
||||
//@ts-ignore
|
||||
// @ts-expect-error incorrect type when legacy
|
||||
i18n.global.locale.value = locale;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user