fix locale

This commit is contained in:
an-lee
2024-05-15 18:36:32 +08:00
parent 0bec1d4be1
commit fc0dc70bfa
4 changed files with 7 additions and 5 deletions

View File

@@ -142,7 +142,8 @@
"mine": "Mine",
"preferences": "Preferences",
"profile": "My Profile",
"notes": "Note"
"notes": "Note",
"help": "Help"
},
"form": {
"lengthMustBeAtLeast": "{{field}} must be at least {{length}} characters",
@@ -193,7 +194,7 @@
"retry": "Retry",
"failedToLogin": "Failed to login",
"sendCode": "Send code",
"codeSent": "Code sent, please check your SMS",
"codeSent": "Code has been sent",
"verificationCode": "Verification code",
"email": "Email",
"phoneNumber": "Phone number",

View File

@@ -142,7 +142,8 @@
"mine": "我的",
"preferences": "软件设置",
"profile": "个人主页",
"notes": "笔记"
"notes": "笔记",
"help": "帮助"
},
"form": {
"lengthMustBeAtLeast": "{{field}} 长度不可超过 {{length}} 个字符",

View File

@@ -7,7 +7,7 @@ import {
SheetTrigger,
SheetContent,
} from "@renderer/components/ui";
import { useContext, useEffect, useRef, useState } from "react";
import { useContext, useEffect, useState } from "react";
import { AppSettingsProviderContext } from "@renderer/context";
import { t } from "i18next";
import { LoaderIcon } from "lucide-react";

View File

@@ -170,7 +170,7 @@ export const Sidebar = () => {
className="w-full xl:justify-start px-2 xl:px-4"
>
<HelpCircleIcon className="h-5 w-5" />
<span className="ml-2 hidden xl:block">{t("help")}</span>
<span className="ml-2 hidden xl:block">{t("sidebar.help")}</span>
</Button>
</DropdownMenuTrigger>