From f698d9f3c4a7cba1523e57704cbfd2d8304e3a11 Mon Sep 17 00:00:00 2001 From: toni <99801307+toniseldr@users.noreply.github.com> Date: Sat, 25 Mar 2023 17:12:56 -0300 Subject: [PATCH] locate pt (#159) * locate portuguese * locate portuguese --- next-i18next.config.js | 2 +- public/locales/pt/chat.json | 25 +++++++++++++++++++++++++ public/locales/pt/common.json | 1 + public/locales/pt/markdown.json | 5 +++++ public/locales/pt/sidebar.json | 13 +++++++++++++ 5 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 public/locales/pt/chat.json create mode 100644 public/locales/pt/common.json create mode 100644 public/locales/pt/markdown.json create mode 100644 public/locales/pt/sidebar.json diff --git a/next-i18next.config.js b/next-i18next.config.js index bcf9f8d..716d287 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", "es", "sv"], + locales: ["de", "en", "fr", "ru", "zh", "es", "sv", "pt"], }, localePath: typeof window === "undefined" diff --git a/public/locales/pt/chat.json b/public/locales/pt/chat.json new file mode 100644 index 0000000..e1ac9b6 --- /dev/null +++ b/public/locales/pt/chat.json @@ -0,0 +1,25 @@ +{ + "OpenAI API Key Required": "A API Key da OpenAI é necessária", + "Please set your OpenAI API key in the bottom left of the sidebar.": "Por favor, insira sua API Key da OpenAI no canto inferior esquerdo da barra lateral.", + "Stop Generating": "Parar de gerar", + "Prompt limit is {{maxLength}} characters": "O limite da mensagem é de {{maxLength}} caracteres", + "System Prompt": "Mensagem do sistema", + "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Você é o ChatGPT, um grande modelo de linguagem treinado pela OpenAI. Siga as instruções do usuário cuidadosamente. Responda usando markdown.", + "Enter a prompt": "Insira uma mensagem", + "Regenerate response": "Gerar resposta novamente", + "Sorry, there was an error.": "Desculpe, ocorreu um erro.", + "Model": "Modelo", + "Conversation": "Conversação", + "OR": "Ou", + "Loading...": "Carregando...", + "Type a message...": "Escreva uma mensagem...", + "Error fetching models.": "Erro ao buscar os modelos.", + "AI": "IA", + "You": "Você", + "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Certifique-se de que sua API Key da OpenAI esteja definida na parte inferior esquerda da barra lateral.", + "If you completed this step, OpenAI may be experiencing issues.": "Se você concluiu esta etapa, o OpenAI pode estar com problemas.", + "click if using a .env.local file": "clique se estiver usando um arquivo .env.local", + "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "O limite de mensagens é de {{maxLength}} caracteres. Você inseriu {{valueLength}} caracteres", + "Please enter a message": "Por favor, insira uma mensagem", + "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI é um kit de chatbot avançado para os modelos de chat do OpenAI com o objetivo de imitar a interface e a funcionalidade do ChatGPT." +} \ No newline at end of file diff --git a/public/locales/pt/common.json b/public/locales/pt/common.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/public/locales/pt/common.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/public/locales/pt/markdown.json b/public/locales/pt/markdown.json new file mode 100644 index 0000000..354ee17 --- /dev/null +++ b/public/locales/pt/markdown.json @@ -0,0 +1,5 @@ +{ + "Copy code": "Copiar código", + "Copied!": "Copiado!", + "Enter file name": "Insira o nome do arquivo" +} \ No newline at end of file diff --git a/public/locales/pt/sidebar.json b/public/locales/pt/sidebar.json new file mode 100644 index 0000000..375737a --- /dev/null +++ b/public/locales/pt/sidebar.json @@ -0,0 +1,13 @@ +{ + "New folder": "Nova pasta", + "New chat": "Novo chat", + "No conversations.": "Não há conversas.", + "Search conversations...": "Buscar conversas...", + "OpenAI API Key": "API Key da OpenAI", + "Import conversations": "Importar conversas", + "Are you sure?": "Tem certeza?", + "Clear conversations": "Apagar conversas", + "Export conversations": "Exportar conversas", + "Dark mode": "Modo escuro", + "Light mode": "Modo claro" +} \ No newline at end of file