From cb3844e8b5aa21d7db185c65e37e40613acf7e8d Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Sat, 25 May 2024 11:13:58 +0200 Subject: [PATCH] fix: minor changes to translation --- README.md | 2 +- crowdin.yml | 1 + frontend/src/i18n/locales/en.json | 1 - frontend/src/pages/auth/settings/security.vue | 7 +------ 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9b365bbd..004217ed 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ new translations or comment/vote on existing translations. You can learn more ab #### Getting translations locally (mostly for developers, requires Crowdin CLI, ran in root folder): -`crowdin pull --skip-untranslated-strings -b master -T ` +`crowdin pull -b master -T ` You might want to set the env var `TRANSLATION_MODE` to true in order to get warnings about untranslated strings. diff --git a/crowdin.yml b/crowdin.yml index ee8eff16..4ecbd376 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -7,3 +7,4 @@ preserve_hierarchy: true files: - source: /frontend/src/i18n/locales/en.json translation: /frontend/src/i18n/locales/%two_letters_code%.json + skip_untranslated_strings: true diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index 692533d8..ad59406a 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -608,7 +608,6 @@ "unstable": "Versions are to be considered unstable", "pinned": "Latest version is pinned on main project page", "sends_notifications": "New versions in this channel send notifications to watching users", - "pinned": "Latest version is pinned on main project page", "hide_by_default": "De-select this channel on the versions page" }, "error": { diff --git a/frontend/src/pages/auth/settings/security.vue b/frontend/src/pages/auth/settings/security.vue index 4d184d78..cdad35c5 100644 --- a/frontend/src/pages/auth/settings/security.vue +++ b/frontend/src/pages/auth/settings/security.vue @@ -351,12 +351,7 @@ function closeUnlinkModal() { v-for="credential in settings?.oauthConnections" :key="credential.provider + credential.id" :disabled="!settings?.hasPassword && settings?.oauthConnections.length === 1" - :title=" - !settings?.hasPassword && settings?.oauthConnections.length === 1 - ? // ? t('auth.settings.security.unlinkOAuth.cantUnlink') Doesn't work - 'You can\'t unlink your last oauth credential if you don\'t have a password set' - : undefined - " + :title="!settings?.hasPassword && settings?.oauthConnections.length === 1 ? t('auth.settings.security.unlinkOAuth.cantUnlink') : undefined" @click="unlinkOAuth(credential.provider, credential.id)" >