From 1253565a69974a82275afa25408f9db36ef896d3 Mon Sep 17 00:00:00 2001 From: RichyRK <123424756+RichyRK@users.noreply.github.com> Date: Sat, 25 Mar 2023 19:35:29 +0100 Subject: [PATCH] Add locale sv (Swedish) (#157) * add locale sv (Swedish) * add locale sv (Swedish) --- next-i18next.config.js | 2 +- public/locales/sv/chat.json | 24 ++++++++++++++++++++++++ public/locales/sv/common.json | 1 + public/locales/sv/markdown.json | 5 +++++ public/locales/sv/sidebar.json | 13 +++++++++++++ 5 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 public/locales/sv/chat.json create mode 100644 public/locales/sv/common.json create mode 100644 public/locales/sv/markdown.json create mode 100644 public/locales/sv/sidebar.json diff --git a/next-i18next.config.js b/next-i18next.config.js index 41b6869..bcf9f8d 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"], + locales: ["de", "en", "fr", "ru", "zh", "es", "sv"], }, localePath: typeof window === "undefined" diff --git a/public/locales/sv/chat.json b/public/locales/sv/chat.json new file mode 100644 index 0000000..58c9d1d --- /dev/null +++ b/public/locales/sv/chat.json @@ -0,0 +1,24 @@ +{ + "OpenAI API Key Required": "OpenAI API-nyckel krävs", + "Please set your OpenAI API key in the bottom left of the sidebar.": "Vänligen ange din OpenAI API-nyckel längst ner till vänster i sidofältet.", + "Stop Generating": "Sluta generera", + "Prompt limit is {{maxLength}} characters": "Din prompt kan inte ha fler än {{maxLength}} tecken", + "System Prompt": "System prompt", + "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Du är ChatGPT, en stor språkmodell tränad av OpenAI. Följ användarens instruktioner noggrant. Svara genom att använda markdown.", + "Enter a prompt": "Ange en prompt", + "Regenerate response": "Återskapa svar", + "Sorry, there was an error.": "Ursäkta, det uppstod ett fel.", + "Model": "Modell", + "Conversation": "Konversation", + "OR": "ELLER", + "Loading...": "Laddar...", + "Type a message...": "Skriv ett meddelande...", + "Error fetching models.": "Det gick inte att hämta modeller.", + "AI": "AI", + "You": "Du", + "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Se till att du har angett din OpenAI API-nyckel längst ner till vänster i sidofältet.", + "If you completed this step, OpenAI may be experiencing issues.": "Om du slutförde det här steget kan OpenAI ha problem.", + "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "Meddelandegränsen är {{maxLength}} tecken. Du har angett {{valueLength}} tecken.", + "Please enter a message": "Vänligen ange ett meddelande", + "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI är ett avancerat chatbot-kit för OpenAI:s chattmodeller som syftar till att efterlikna ChatGPT:s gränssnitt och funktionalitet." +} \ No newline at end of file diff --git a/public/locales/sv/common.json b/public/locales/sv/common.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/public/locales/sv/common.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/public/locales/sv/markdown.json b/public/locales/sv/markdown.json new file mode 100644 index 0000000..051e2bf --- /dev/null +++ b/public/locales/sv/markdown.json @@ -0,0 +1,5 @@ +{ + "Copy code": "Kopiera kod", + "Copied!": "Kopierad!", + "Enter file name": "Ange filnamn" +} \ No newline at end of file diff --git a/public/locales/sv/sidebar.json b/public/locales/sv/sidebar.json new file mode 100644 index 0000000..be6bfad --- /dev/null +++ b/public/locales/sv/sidebar.json @@ -0,0 +1,13 @@ +{ + "New folder": "Ny mapp", + "New chat": "Ny chatt", + "No conversations.": "Inga konversationer.", + "Search conversations...": "Sök konversationer...", + "OpenAI API Key": "OpenAI API-nyckel", + "Import conversations": "Importera konversationer", + "Are you sure?": "Är du säker?", + "Clear conversations": "Radera konversationer", + "Export conversations": "Exportera konversationer", + "Dark mode": "Mörkt läge", + "Light mode": "Ljust läge" +} \ No newline at end of file