update multi lang in preview view
This commit is contained in:
@@ -2,6 +2,8 @@ import { App, Modal, TFile } from 'obsidian'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
|
||||
import { t } from '../../lang/helpers'
|
||||
|
||||
type ImageSelectorProps = {
|
||||
onClose: () => void
|
||||
onSelectImages: (files: File[]) => void
|
||||
@@ -46,7 +48,7 @@ const ImageSelector: React.FC<ImageSelectorProps> = ({
|
||||
className="infio-image-search"
|
||||
/>
|
||||
<label className="infio-upload-button">
|
||||
Upload New Image
|
||||
{t('chat.input.uploadNewImage')}
|
||||
<input
|
||||
type="file"
|
||||
accept="image/*"
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user