Skip to content

Commit

Permalink
feat: update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
mamadoudicko committed Aug 21, 2023
1 parent 5c215a5 commit b718be4
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import Link from "next/link";

import Button from "@/lib/components/ui/Button";
import { useTranslation } from "react-i18next";

export const AddNewBrainButton = (): JSX.Element => (
<Link
href={"/brains-management"}
onClick={(event) => {
event.preventDefault();
event.stopPropagation();
}}
>
<Button variant={"tertiary"}>Create new brain</Button>
</Link>
);
export const AddNewBrainButton = (): JSX.Element => {
const { t } = useTranslation(["chat"]);

return (
<Link
href={"/brains-management"}
onClick={(event) => {
event.preventDefault();
event.stopPropagation();
}}
>
<Button variant={"tertiary"}>{t("new_brain")}</Button>
</Link>
);
};
3 changes: 2 additions & 1 deletion frontend/public/locales/en/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
"empty_brain_title_prefix": "Upload files in a",
"empty_brain_title_suffix": "and chat with them",
"actions_bar_placeholder": "Ask a question to @brains or /files and choose your #prompt",
"missing_brain": "Please select a brain to chat with"
"missing_brain": "Please select a brain to chat with",
"new_brain":"Create new brain"
}
3 changes: 2 additions & 1 deletion frontend/public/locales/es/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"subtitle": "Habla con un modelo de lenguaje acerca de tus datos subidos",
"thinking": "Pensando...",
"title": "Conversa con {{brain}}",
"missing_brain": "No hay cerebro seleccionado"
"missing_brain": "No hay cerebro seleccionado",
"new_brain": "Crear nuevo cerebro"
}
3 changes: 2 additions & 1 deletion frontend/public/locales/fr/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"subtitle": "Parlez à un modèle linguistique de vos données téléchargées",
"thinking": "Réflexion...",
"title": "Discuter avec {{brain}}",
"missing_brain": "Veuillez selectionner un cerveau pour discuter"
"missing_brain": "Veuillez selectionner un cerveau pour discuter",
"new_brain": "Créer un nouveau cerveau"
}
3 changes: 2 additions & 1 deletion frontend/public/locales/pt-br/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"subtitle": "Converse com um modelo de linguagem sobre seus dados enviados",
"thinking": "Pensando...",
"title": "Converse com {{brain}}",
"missing_brain": "Cérebro não encontrado"
"missing_brain": "Cérebro não encontrado",
"new_brain": "Criar novo cérebro"
}
3 changes: 2 additions & 1 deletion frontend/public/locales/ru/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"subtitle": "Общайтесь с языковой моделью о ваших загруженных данных",
"thinking": "Думаю...",
"title": "Чат с {{brain}}",
"missing_brain": "Мозг не найден"
"missing_brain": "Мозг не найден",
"new_brain": "Создать новый мозг"
}

0 comments on commit b718be4

Please sign in to comment.