From a745cb74983a0fd03d465c9a2a3c852cd75ef8c1 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 7 Oct 2024 15:42:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90(frontend)=20translate=20last=20fea?= =?UTF-8?q?tures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Translate: - doc visibility - doc versions - doc inline title editing --- CHANGELOG.md | 1 + .../doc-management/components/DocVisibility.tsx | 8 ++++---- .../apps/impress/src/i18n/translations.json | 17 ++++++++++------- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af20e9b7..128b505c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to - ✨(frontend) Activate versions feature #240 - ✨(frontend) one-click document creation #275 - ✨(frontend) edit title inline #275 +- 🌐(frontend) Update translation #308 ## Changed diff --git a/src/frontend/apps/impress/src/features/docs/doc-management/components/DocVisibility.tsx b/src/frontend/apps/impress/src/features/docs/doc-management/components/DocVisibility.tsx index 5a06fd24..61788869 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-management/components/DocVisibility.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-management/components/DocVisibility.tsx @@ -58,11 +58,11 @@ export const DocVisibility = ({ doc }: DocVisibilityProps) => { setDocPublic(!docPublic); }} disabled={!doc.abilities.link_configuration} - text={t( + text={ docPublic - ? 'Anyone on the internet with the link can view' - : 'Only for people with access', - )} + ? t('Anyone on the internet with the link can view') + : t('Only for people with access') + } />