From cedc5f2e2ec3f07ccfd436369f39136927bc4770 Mon Sep 17 00:00:00 2001 From: jmescuderowritefull Date: Mon, 16 Mar 2026 09:58:32 +0100 Subject: [PATCH] Add simulated suggestions for non English documents (#32147) GitOrigin-RevId: 923495f92de4c445f7906240b4f60101a82bf8f3 --- .../src/Features/Project/ProjectController.mjs | 1 + .../web/frontend/js/i18n-resources/writefull.ts | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/services/web/app/src/Features/Project/ProjectController.mjs b/services/web/app/src/Features/Project/ProjectController.mjs index f5ee0c8bea..cbbe9d1e76 100644 --- a/services/web/app/src/Features/Project/ProjectController.mjs +++ b/services/web/app/src/Features/Project/ProjectController.mjs @@ -471,6 +471,7 @@ const _ProjectController = { 'wf-enable-super-complete-promotion', 'plans-2026-phase-1', 'testing-ai-usage', + 'wf-fake-non-english-suggestions', ].filter(Boolean) const getUserValues = async userId => diff --git a/services/web/frontend/js/i18n-resources/writefull.ts b/services/web/frontend/js/i18n-resources/writefull.ts index a3e9768acf..ea0eacc263 100644 --- a/services/web/frontend/js/i18n-resources/writefull.ts +++ b/services/web/frontend/js/i18n-resources/writefull.ts @@ -126,9 +126,10 @@ const en = { 'suggestion-card.banner.quick-guide.welcome': 'Welcome to Writefull!', 'suggestion-card.banner.quick-guide.start': 'Click here to start a quick guide', - 'suggestion-card.banner.non-english.question': 'Is your text non-English?', - 'suggestion-card.banner.non-english.yes': 'Yes, switch to GPT.', - 'suggestion-card.banner.non-english.no': 'No, continue with English.', + 'suggestion-card.banner.non-english.introduction': + "To view AI-powered language suggestions you'll need to use the GPT model.", + 'suggestion-card.banner.non-english.choose-model': 'Choose model', + 'suggestion-card.banner.non-english.disable': 'Disable', 'suggestion-card.track-changes.show': 'Show track changes', 'suggestion-card.track-changes.hide': 'Hide track changes', 'suggestion-card.information-tooltip': @@ -631,10 +632,10 @@ const es = { 'suggestion-card.banner.quick-guide.welcome': '¡Bienvenido a Writefull!', 'suggestion-card.banner.quick-guide.start': 'Haga clic aquí para una guía rápida', - 'suggestion-card.banner.non-english.question': - '¿Tu texto está en otro idioma que no sea inglés?', - 'suggestion-card.banner.non-english.yes': 'Sí, cambiar a GPT.', - 'suggestion-card.banner.non-english.no': 'No, continuar con inglés.', + 'suggestion-card.banner.non-english.introduction': + 'Para ver sugerencias de lenguaje impulsadas por IA, necesitarás usar el modelo GPT.', + 'suggestion-card.banner.non-english.choose-model': 'Elegir modelo', + 'suggestion-card.banner.non-english.disable': 'Deshabilitar', 'suggestion-card.track-changes.show': 'Mostrar cambios', 'suggestion-card.track-changes.hide': 'Ocultar cambios', 'suggestion-card.information-tooltip':