fix(Breadcrumb/Carousel/Pagination): handle icons in RTL mode (#2633)

This commit is contained in:
Malik-Jouda
2024-11-14 11:17:55 +02:00
committed by GitHub
parent 976dd2a386
commit e5119a9ca4
4 changed files with 25 additions and 11 deletions

View File

@@ -30,7 +30,7 @@ export function translate(path: string, option: undefined | TranslatorOption, lo
export function buildLocaleContext(locale: MaybeRef<Locale>): LocaleContext {
const lang = computed(() => unref(locale).name)
const code = computed(() => unref(locale).code)
const dir = computed(() => unref(locale).dir)
const dir = computed(() => unref(locale).dir.toLowerCase())
const localeRef = isRef(locale) ? locale : ref(locale)
return {