feat: Add i18n support for Chinese language (#142)
* feat: Add i18n support for Chinese language * fix: locale not working in Docker environment
This commit is contained in:
@@ -3,12 +3,14 @@ import { cleanConversationHistory } from "@/utils/app/clean";
|
||||
import { IconFileImport } from "@tabler/icons-react";
|
||||
import { FC } from "react";
|
||||
import { SidebarButton } from "./SidebarButton";
|
||||
import { useTranslation } from "next-i18next";
|
||||
|
||||
interface Props {
|
||||
onImport: (data: { conversations: Conversation[]; folders: ChatFolder[] }) => void;
|
||||
}
|
||||
|
||||
export const Import: FC<Props> = ({ onImport }) => {
|
||||
const { t} = useTranslation('sidebar')
|
||||
return (
|
||||
<>
|
||||
<input
|
||||
@@ -36,7 +38,7 @@ export const Import: FC<Props> = ({ onImport }) => {
|
||||
/>
|
||||
|
||||
<SidebarButton
|
||||
text="Import conversations"
|
||||
text={t("Import conversations")}
|
||||
icon={<IconFileImport size={16} />}
|
||||
onClick={() => {
|
||||
const importFile = document.querySelector("#import-file") as HTMLInputElement;
|
||||
|
||||
Reference in New Issue
Block a user