Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to set the text alignment to rtl? #321

Open
chgold opened this issue May 16, 2024 · 1 comment
Open

Is it possible to set the text alignment to rtl? #321

chgold opened this issue May 16, 2024 · 1 comment

Comments

@chgold
Copy link

chgold commented May 16, 2024

for Semitic languages

@yikoyu
Copy link
Owner

yikoyu commented Jun 5, 2024

import { createVuetify } from 'vuetify'

// https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/composables/locale.ts#L83
// this is rtl default
const vuetify = createVuetify({
  locale: {
    rtl: { zhHans: true },
  }
})
import { useLocale } from 'vuetify'
import { locale } from 'vuetify-pro-tiptap'

const { current } = useLocale()
function setLang(lang: string) {
  locale.setLang(lang)
  current.value = lang
}

setLang('zhHans') // set rtl locale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants