update multi lang in preview view

This commit is contained in:
duanfuxiang
2025-05-01 15:48:34 +08:00
parent cc8cc26e0b
commit 65d4ca33d2
4 changed files with 15 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
import { getIcon } from 'obsidian'
import { useEffect, useRef } from 'react'
import { t } from '../../lang/helpers'
import { PreviewViewState } from '../../PreviewView'
export default function PreviewViewRoot({
@@ -46,7 +47,7 @@ export default function PreviewViewRoot({
onClick={close}
>
{closeIcon && '✕'}
Close
{t('previewView.close')}
</button>
</div>
</div>