Browse Source

Merge pull request #3754 from nocodb/fix/com-trans

fix: add community translated
pull/3755/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
b6e9bb55e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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> </script>
<template> <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 <a-menu-item
v-for="[key, lang] of languages" v-for="[key, lang] of languages"
:key="key" :key="key"
@ -51,14 +61,4 @@ onMounted(() => {
{{ Language[key] || lang }} {{ Language[key] || lang }}
</div> </div>
</a-menu-item> </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> </template>

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

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

Loading…
Cancel
Save