diff --git a/crowdin.yml b/crowdin.yml new file mode 100644 index 0000000000..67c2eb4998 --- /dev/null +++ b/crowdin.yml @@ -0,0 +1,3 @@ +files: + - source: /packages/nc-gui/lang/en.json + translation: /packages/nc-gui/lang/%two_letters_code%.json diff --git a/packages/nc-gui/components/general/ReleaseInfo.vue b/packages/nc-gui/components/general/ReleaseInfo.vue index fccb4cc566..e682ad30ed 100644 --- a/packages/nc-gui/components/general/ReleaseInfo.vue +++ b/packages/nc-gui/components/general/ReleaseInfo.vue @@ -6,13 +6,19 @@ const { $api } = useNuxtApp() const { currentVersion, latestRelease, hiddenRelease } = useGlobal() -const releaseAlert = computed( - () => - currentVersion.value && - latestRelease.value && - currentVersion.value !== latestRelease.value && - latestRelease.value !== hiddenRelease.value, -) +const releaseAlert = computed({ + get() { + return ( + currentVersion.value && + latestRelease.value && + currentVersion.value !== latestRelease.value && + latestRelease.value !== hiddenRelease.value + ) + }, + set(val) { + hiddenRelease.value = val ? null : latestRelease.value + }, +}) async function fetchReleaseInfo() { try { @@ -35,7 +41,7 @@ onMounted(async () => await fetchReleaseInfo())