From f5ebde2d2d7d510fbcff4a193da3c3776c9e4638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=89VEIL?= Date: Sat, 25 Mar 2023 17:48:50 +0100 Subject: [PATCH] Locale fr (#153) * :globe_with_meridians: fr translations * :coffin: remove unused translation --- next-i18next.config.js | 2 +- public/locales/fr/chat.json | 24 ++++++++++++++++++++++++ public/locales/fr/common.json | 1 + public/locales/fr/markdown.json | 5 +++++ public/locales/fr/sidebar.json | 13 +++++++++++++ public/locales/ru/chat.json | 3 +-- public/locales/zh/chat.json | 3 +-- 7 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 public/locales/fr/chat.json create mode 100644 public/locales/fr/common.json create mode 100644 public/locales/fr/markdown.json create mode 100644 public/locales/fr/sidebar.json diff --git a/next-i18next.config.js b/next-i18next.config.js index 3dfd08e..0e14f62 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -3,7 +3,7 @@ const path = require("path"); module.exports = { i18n: { defaultLocale: "en", - locales: ["en", "zh", "ru"], + locales: ["en", "fr", "ru", "zh"], }, localePath: typeof window === "undefined" diff --git a/public/locales/fr/chat.json b/public/locales/fr/chat.json new file mode 100644 index 0000000..13212ea --- /dev/null +++ b/public/locales/fr/chat.json @@ -0,0 +1,24 @@ +{ + "OpenAI API Key Required": "Clé API OpenAI requise", + "Please set your OpenAI API key in the bottom left of the sidebar.": "Veuillez saisir votre clé API OpenAI dans le coin inférieur gauche de la barre latérale.", + "Stop Generating": "Interrompre la génération", + "Prompt limit is {{maxLength}} characters": "La limite du prompt est de {{maxLength}} caractères", + "System Prompt": "Prompt du système", + "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Vous êtes ChatGPT, un grand modèle linguistique entraîné par OpenAI. Suivez attentivement les instructions de l'utilisateur. Répondez en utilisant Markdown.", + "Enter a prompt": "Entrez un prompt", + "Regenerate response": "Régénérer la réponse", + "Sorry, there was an error.": "Désolé, une erreur est survenue.", + "Model": "Modèle", + "Conversation": "Conversation", + "OR": "OU", + "Loading...": "Chargement...", + "Type a message...": "Tapez un message...", + "Error fetching models.": "Erreur lors de la récupération des modèles.", + "AI": "IA", + "You": "Vous", + "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Assurez-vous que votre clé API OpenAI est définie dans le coin inférieur gauche de la barre latérale.", + "If you completed this step, OpenAI may be experiencing issues.": "Si vous avez effectué cette étape, OpenAI peut rencontrer des problèmes.", + "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "La limite de message est de {{maxLength}} caractères. Vous avez saisi {{valueLength}} caractères.", + "Please enter a message": "Veuillez entrer un message", + "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI est un kit de chatbot avancé pour les modèles de chat d'OpenAI visant à imiter l'interface et les fonctionnalités de ChatGPT." +} \ No newline at end of file diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/public/locales/fr/common.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/public/locales/fr/markdown.json b/public/locales/fr/markdown.json new file mode 100644 index 0000000..ff39f03 --- /dev/null +++ b/public/locales/fr/markdown.json @@ -0,0 +1,5 @@ +{ + "Copy code": "Copier le code", + "Copied!": "Copié !", + "Enter file name": "Entrez le nom du fichier" +} \ No newline at end of file diff --git a/public/locales/fr/sidebar.json b/public/locales/fr/sidebar.json new file mode 100644 index 0000000..d4c6fa1 --- /dev/null +++ b/public/locales/fr/sidebar.json @@ -0,0 +1,13 @@ +{ + "New folder": "Nouveau dossier", + "New chat": "Nouvelle discussion", + "No conversations.": "Aucune conversation.", + "Search conversations...": "Rechercher des conversations...", + "OpenAI API Key": "Clé API OpenAI", + "Import conversations": "Importer des conversations", + "Are you sure?": "Êtes-vous sûr ?", + "Clear conversations": "Effacer les conversations", + "Export conversations": "Exporter les conversations", + "Dark mode": "Mode sombre", + "Light mode": "Mode clair" +} \ No newline at end of file diff --git a/public/locales/ru/chat.json b/public/locales/ru/chat.json index 9e2b683..ee0f714 100644 --- a/public/locales/ru/chat.json +++ b/public/locales/ru/chat.json @@ -18,8 +18,7 @@ "You": "Вы", "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Убедитесь, что вы ввели API-ключ OpenAI.", "If you completed this step, OpenAI may be experiencing issues.": "Если вы выполнили этот шаг, то возможно OpenAI может испытывать проблемы", - "click if using a .env.local file": "Нажмите, если вы используете файл .env.local", "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "Лимит сообщения: {{maxLength}} символов. Вы ввели {{valueLength}} символов.", "Please enter a message": "Пожалуйста введите сообщение", "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI - продвинутый интерфейс чатбота для чат-моделей OpenAI, которое имитирует интерфейс ChatGPT" -} +} \ No newline at end of file diff --git a/public/locales/zh/chat.json b/public/locales/zh/chat.json index 4f9b1bf..7f5e0c6 100644 --- a/public/locales/zh/chat.json +++ b/public/locales/zh/chat.json @@ -18,8 +18,7 @@ "You": "你", "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "请确保您的 OpenAI API 密钥已在侧边栏左下角设置。", "If you completed this step, OpenAI may be experiencing issues.": "如果您已完成此步骤,OpenAI 可能遇到了问题。", - "click if using a .env.local file": "如果使用 .env.local 文件,请点击", "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "消息字数限制为 {{maxLength}} 个字符。您已输入 {{valueLength}} 个字符。", "Please enter a message": "请输入一条消息", "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI 是一个高级聊天机器人工具包,旨在模仿 OpenAI 聊天模型的 ChatGPT 界面和功能。" -} +} \ No newline at end of file