feat: add missing translation
This commit is contained in:
parent
448be81441
commit
34ae9421e2
|
|
@ -5,6 +5,7 @@
|
|||
"Notifications": "通知",
|
||||
"Unread notifications": "未读通知",
|
||||
"Settings": "设置",
|
||||
"Events": "活动",
|
||||
"Site Stats": "站点统计",
|
||||
"Total Posts": "文章总数",
|
||||
"Total Comments": "评论总数",
|
||||
|
|
@ -128,5 +129,7 @@
|
|||
"View the transaction": "查看交易",
|
||||
"Share to Twitter": "分享到 Twitter",
|
||||
"Got it, thanks!" : "好的,谢谢!",
|
||||
"Published!" : "已发布!"
|
||||
"Published!" : "已发布!",
|
||||
"Title goes here...": "标题在这里...",
|
||||
"Start writing...": "开始写作..."
|
||||
}
|
||||
|
|
@ -3,7 +3,8 @@ import { EditorView, ViewUpdate } from "@codemirror/view"
|
|||
import { markdown } from "@codemirror/lang-markdown"
|
||||
import { scroll } from "@uiw/codemirror-extensions-events"
|
||||
import type { EditorState } from "@codemirror/state"
|
||||
import { useCallback, useState, useEffect, useMemo } from "react"
|
||||
import { useState, useEffect, useMemo } from "react"
|
||||
import { useTranslation } from "next-i18next"
|
||||
|
||||
export const Editor: React.FC<{
|
||||
value: string
|
||||
|
|
@ -22,6 +23,7 @@ export const Editor: React.FC<{
|
|||
onCreateEditor,
|
||||
onMouseEnter,
|
||||
}) => {
|
||||
const { t } = useTranslation("dashboard")
|
||||
const [extensions, setExtensions] = useState<any>([])
|
||||
useEffect(() => {
|
||||
setExtensions([
|
||||
|
|
@ -103,7 +105,7 @@ export const Editor: React.FC<{
|
|||
}}
|
||||
indentWithTab={true}
|
||||
onChange={onChange}
|
||||
placeholder="Start writing..."
|
||||
placeholder={t("Start writing...") || ""}
|
||||
onUpdate={onUpdate}
|
||||
onMouseEnter={onMouseEnter}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -463,7 +463,7 @@ export default function SubdomainEditor() {
|
|||
}}
|
||||
onChange={(e) => updateValue("title", e.target.value)}
|
||||
className="h-12 ml-1 inline-flex items-center border-none text-3xl font-bold w-full focus:outline-none"
|
||||
placeholder="Title goes here.."
|
||||
placeholder={t("Title goes here...") || ""}
|
||||
/>
|
||||
</div>
|
||||
<div className="mt-5 flex-1 flex overflow-hidden">
|
||||
|
|
|
|||
Loading…
Reference in New Issue