Browse Source

fix: add community translated

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3754/head
mertmit 2 years ago
parent
commit
2353e6b421
  1. 20
      packages/nc-gui/components/general/language/Menu.vue
  2. 1
      packages/nc-gui/pages/[projectType]/[projectId]/index.vue

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

@ -39,6 +39,16 @@ onMounted(() => {
</script>
<template>
<a-menu-item class="mt-1 group">
<a
href="https://docs.nocodb.com/engineering/translation/#how-to-contribute--for-community-members"
target="_blank"
class="caption nc-project-menu-item py-2 text-primary underline hover:opacity-75"
>
{{ $t('activity.translate') }}
</a>
</a-menu-item>
<a-menu-item
v-for="[key, lang] of languages"
:key="key"
@ -51,14 +61,4 @@ onMounted(() => {
{{ Language[key] || lang }}
</div>
</a-menu-item>
<a-menu-item class="mt-1">
<a
href="https://docs.nocodb.com/engineering/translation/#how-to-contribute--for-community-members"
target="_blank"
class="caption py-2 text-primary underline hover:opacity-75"
>
{{ $t('activity.translate') }}
</a>
</a-menu-item>
</template>

1
packages/nc-gui/pages/[projectType]/[projectId]/index.vue

@ -396,6 +396,7 @@ onBeforeUnmount(reset)
<div class="nc-project-menu-item group">
<MaterialSymbolsTranslate class="group-hover:text-accent nc-language" />
{{ $t('labels.language') }}
<div class="flex items-center text-gray-400 text-xs">(Community Translated)</div>
<div class="flex-1" />
<MaterialSymbolsChevronRightRounded

Loading…
Cancel
Save