Просмотр исходного кода

Add simulated suggestions for non English documents (#32147)

GitOrigin-RevId: 923495f92de4c445f7906240b4f60101a82bf8f3
jmescuderowritefull 5 месяцев назад
Родитель
Сommit
cedc5f2e2e

+ 1 - 0
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 =>

+ 8 - 7
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':