Browse Source

Merge pull request #3763 from nocodb/fix/rtl-ar

fix(i18n): rtl for ar
pull/3783/head
Raju Udava 2 years ago committed by GitHub
parent
commit
32bf49fea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/components/general/SocialCard.vue
  2. 2
      packages/nc-gui/components/general/language/Menu.vue

2
packages/nc-gui/components/general/SocialCard.vue

@ -3,7 +3,7 @@ import { enumColor as colors } from '#imports'
const { lang: currentLang } = useGlobal() const { lang: currentLang } = useGlobal()
const isRtlLang = $computed(() => ['fa'].includes(currentLang.value)) const isRtlLang = $computed(() => ['fa', 'ar'].includes(currentLang.value))
</script> </script>
<template> <template>

2
packages/nc-gui/components/general/language/Menu.vue

@ -11,7 +11,7 @@ const { locale } = useI18n()
const languages = $computed(() => Object.entries(Language).sort()) const languages = $computed(() => Object.entries(Language).sort())
const isRtlLang = $computed(() => ['fa'].includes(currentLang.value)) const isRtlLang = $computed(() => ['fa', 'ar'].includes(currentLang.value))
function applyDirection() { function applyDirection() {
const targetDirection = isRtlLang ? 'rtl' : 'ltr' const targetDirection = isRtlLang ? 'rtl' : 'ltr'

Loading…
Cancel
Save