From 9a6ad3d66cbe43da91d1c73512b929789e976117 Mon Sep 17 00:00:00 2001 From: Matias <1847940+matias-casal@users.noreply.github.com> Date: Sat, 25 Mar 2023 14:50:02 -0300 Subject: [PATCH] locale es (#156) Co-authored-by: Mati --- next-i18next.config.js | 2 +- public/locales/es/chat.json | 25 +++++++++++++++++++++++++ public/locales/es/common.json | 1 + public/locales/es/markdown.json | 5 +++++ public/locales/es/sidebar.json | 13 +++++++++++++ 5 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 public/locales/es/chat.json create mode 100644 public/locales/es/common.json create mode 100644 public/locales/es/markdown.json create mode 100644 public/locales/es/sidebar.json diff --git a/next-i18next.config.js b/next-i18next.config.js index 1c44b8a..41b6869 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -1,7 +1,7 @@ module.exports = { i18n: { defaultLocale: "en", - locales: ["de", "en", "fr", "ru", "zh"], + locales: ["de", "en", "fr", "ru", "zh", "es"], }, localePath: typeof window === "undefined" diff --git a/public/locales/es/chat.json b/public/locales/es/chat.json new file mode 100644 index 0000000..54fdab0 --- /dev/null +++ b/public/locales/es/chat.json @@ -0,0 +1,25 @@ +{ + "OpenAI API Key Required": "Se requiere la clave de API de OpenAI", + "Please set your OpenAI API key in the bottom left of the sidebar.": "Por favor, ingrese su clave de API de OpenAI en la esquina inferior izquierda de la barra lateral.", + "Stop Generating": "Dejar de generar", + "Prompt limit is {{maxLength}} characters": "El límite del mensaje es de {{maxLength}} caracteres", + "System Prompt": "Mensaje del sistema", + "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Eres ChatGPT, un modelo de lenguaje grande entrenado por OpenAI. Sigue las instrucciones del usuario cuidadosamente. Responde usando markdown.", + "Enter a prompt": "Ingrese un mensaje", + "Regenerate response": "Regenerar respuesta", + "Sorry, there was an error.": "Lo sentimos, ha ocurrido un error.", + "Model": "Modelo", + "Conversation": "Conversación", + "OR": "O", + "Loading...": "Cargando...", + "Type a message...": "Escriba un mensaje...", + "Error fetching models.": "Error al obtener los modelos.", + "AI": "IA", + "You": "Tú", + "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Asegúrate de que hayas ingresado la clave de API de OpenAI en la esquina inferior izquierda de la barra lateral.", + "If you completed this step, OpenAI may be experiencing issues.": "Si completaste este paso, OpenAI podría estar experimentando problemas.", + "click if using a .env.local file": "haz clic si estás utilizando un archivo .env.local", + "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "El límite del mensaje es de {{maxLength}} caracteres. Has ingresado {{valueLength}} caracteres.", + "Please enter a message": "Por favor, ingrese un mensaje", + "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI es un kit avanzado de chatbot para los modelos de chat de OpenAI que busca imitar la interfaz y funcionalidad de ChatGPT." +} \ No newline at end of file diff --git a/public/locales/es/common.json b/public/locales/es/common.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/public/locales/es/common.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/public/locales/es/markdown.json b/public/locales/es/markdown.json new file mode 100644 index 0000000..0b7f7b2 --- /dev/null +++ b/public/locales/es/markdown.json @@ -0,0 +1,5 @@ +{ + "Copy code": "Copiar código", + "Copied!": "¡Copiado!", + "Enter file name": "Ingrese el nombre del archivo" +} \ No newline at end of file diff --git a/public/locales/es/sidebar.json b/public/locales/es/sidebar.json new file mode 100644 index 0000000..42ed2dc --- /dev/null +++ b/public/locales/es/sidebar.json @@ -0,0 +1,13 @@ +{ + "New folder": "Nuevo carpeta", + "New chat": "Nueva conversación", + "No conversations.": "No hay conversaciones.", + "Search conversations...": "Buscar conversaciones...", + "OpenAI API Key": "Clave API de OpenAI", + "Import conversations": "Importar conversaciones", + "Are you sure?": "¿Estás seguro?", + "Clear conversations": "Borrar conversaciones", + "Export conversations": "Exportar conversaciones", + "Dark mode": "Modo oscuro", + "Light mode": "Modo claro" +} \ No newline at end of file