Browse Source

fix(i18n): rtl for ar

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3763/head
Raju Udava 2 years ago
parent
commit
1f848bb51d
  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