Эх сурвалжийг харах

Add modal to request language (#29441)

GitOrigin-RevId: a928f6c1eb12f1e47fc6f295b8cbb5c8740df5ac
Borja 11 сар өмнө
parent
commit
b1b638dd90

+ 4 - 1
services/web/.vscode/settings.json

@@ -3,5 +3,8 @@
     "node_modules": true,
     "node_modules": true,
     "data": true
     "data": true
   },
   },
-  "cSpell.words": ["docstore", "Tpds"]
+  "cSpell.words": [
+    "docstore",
+    "Tpds"
+  ]
 }
 }

+ 26 - 2
services/web/frontend/js/i18n-resources/writefull.ts

@@ -28,7 +28,8 @@ const en = {
     'ask-texgpt': 'Ask TeXGPT',
     'ask-texgpt': 'Ask TeXGPT',
     'synonyms-in-context': 'Synonyms in Context',
     'synonyms-in-context': 'Synonyms in Context',
     translate: 'Translate',
     translate: 'Translate',
-    'translate.zh': 'Chinese',
+    'translate.zh-CN': 'Chinese (Simplified)',
+    'translate.zh-HANT': 'Chinese (Traditional)',
     'translate.en': 'English',
     'translate.en': 'English',
     'translate.fr': 'French',
     'translate.fr': 'French',
     'translate.hi': 'Hindi',
     'translate.hi': 'Hindi',
@@ -55,11 +56,22 @@ const en = {
     'translate.tr': 'Turkish',
     'translate.tr': 'Turkish',
     'translate.uk': 'Ukrainian',
     'translate.uk': 'Ukrainian',
     'translate.vi': 'Vietnamese',
     'translate.vi': 'Vietnamese',
+    'translate.pt': 'Portuguese',
+    'translate.ko': 'Korean',
+    'translate.id': 'Indonesian',
     'translate.other': 'Other',
     'translate.other': 'Other',
     'translate.not-listed': 'Language not listed?',
     'translate.not-listed': 'Language not listed?',
     'translate.more-languages-coming-soon.title': 'More languages coming soon',
     'translate.more-languages-coming-soon.title': 'More languages coming soon',
     'translate.more-languages-coming-soon.body':
     'translate.more-languages-coming-soon.body':
       'Sorry, we don’t currently offer any other languages for Translate. We will be adding more throughout November so watch this space!',
       'Sorry, we don’t currently offer any other languages for Translate. We will be adding more throughout November so watch this space!',
+    'translate.request-new-language.title': 'Request a Language',
+    'translate.request-new-language.body':
+      "Sorry, we don't currently offer any other languages. Tell us what language you wanted to use and we will review whether we can add it in the future.",
+    'translate.request-new-language.submit': 'Request',
+    'translate.request-new-language.thanks.title':
+      'Thank you for your language request',
+    'translate.request-new-language.thanks.body':
+      'We’ll review your request and consider adding it in the future',
     'blocked-suggestion-signpost.question':
     'blocked-suggestion-signpost.question':
       'Do you want to permanently stop this suggestion from appearing again?',
       'Do you want to permanently stop this suggestion from appearing again?',
     'blocked-suggestion-signpost.tooltip': 'You can block a suggestion here.',
     'blocked-suggestion-signpost.tooltip': 'You can block a suggestion here.',
@@ -390,7 +402,8 @@ const es = {
     'ask-texgpt': 'Preguntar a TeXGPT',
     'ask-texgpt': 'Preguntar a TeXGPT',
     'synonyms-in-context': 'Sinónimos en Contexto',
     'synonyms-in-context': 'Sinónimos en Contexto',
     translate: 'Traducir',
     translate: 'Traducir',
-    'translate.zh': 'Chino',
+    'translate.zh-CN': 'Chino (Simplificado)',
+    'translate.zh-HANT': 'Chino (Tradicional)',
     'translate.en': 'Inglés',
     'translate.en': 'Inglés',
     'translate.fr': 'Francés',
     'translate.fr': 'Francés',
     'translate.hi': 'Hindi',
     'translate.hi': 'Hindi',
@@ -417,11 +430,22 @@ const es = {
     'translate.tr': 'Turco',
     'translate.tr': 'Turco',
     'translate.uk': 'Ucraniano',
     'translate.uk': 'Ucraniano',
     'translate.vi': 'Vietnamita',
     'translate.vi': 'Vietnamita',
+    'translate.pt': 'Portugués',
+    'translate.ko': 'Coreano',
+    'translate.id': 'Indonesio',
     'translate.other': 'Otro',
     'translate.other': 'Otro',
     'translate.not-listed': '¿Idioma no listado?',
     'translate.not-listed': '¿Idioma no listado?',
     'translate.more-languages-coming-soon.title': 'Más idiomas próximamente',
     'translate.more-languages-coming-soon.title': 'Más idiomas próximamente',
     'translate.more-languages-coming-soon.body':
     'translate.more-languages-coming-soon.body':
       'Lo sentimos, actualmente no ofrecemos otros idiomas para la traducción. Agregaremos más a lo largo de noviembre, ¡así que mantente atento!',
       'Lo sentimos, actualmente no ofrecemos otros idiomas para la traducción. Agregaremos más a lo largo de noviembre, ¡así que mantente atento!',
+    'translate.request-new-language.title': 'Solicitar un nuevo idioma',
+    'translate.request-new-language.body':
+      'Lo sentimos, actualmente no ofrecemos otros idiomas. Dinos qué idioma querías usar y revisaremos si podemos agregarlo en el futuro.',
+    'translate.request-new-language.submit': 'Solicitar',
+    'translate.request-new-language.thanks.title':
+      'Gracias por tu solicitud de idioma',
+    'translate.request-new-language.thanks.body':
+      'Revisaremos tu solicitud y consideraremos agregarlo en el futuro',
     'blocked-suggestion-signpost.question':
     'blocked-suggestion-signpost.question':
       '¿Quieres dejar de ver esta sugerencia permanentemente? Puedes bloquear esta sugerencia aquí.',
       '¿Quieres dejar de ver esta sugerencia permanentemente? Puedes bloquear esta sugerencia aquí.',
     'blocked-suggestion-signpost.tooltip':
     'blocked-suggestion-signpost.tooltip':