chore: update translations
This commit is contained in:
parent
2422d24d68
commit
62c7c7eb5c
2 changed files with 4 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import { useNostr } from '@/providers/NostrProvider'
|
||||||
import { TMailboxRelay } from '@/types'
|
import { TMailboxRelay } from '@/types'
|
||||||
import { CloudUpload, Loader } from 'lucide-react'
|
import { CloudUpload, Loader } from 'lucide-react'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
import { toast } from 'sonner'
|
import { toast } from 'sonner'
|
||||||
|
|
||||||
export default function SaveButton({
|
export default function SaveButton({
|
||||||
|
|
@ -15,6 +16,7 @@ export default function SaveButton({
|
||||||
hasChange: boolean
|
hasChange: boolean
|
||||||
setHasChange: (hasChange: boolean) => void
|
setHasChange: (hasChange: boolean) => void
|
||||||
}) {
|
}) {
|
||||||
|
const { t } = useTranslation()
|
||||||
const { pubkey, publish, updateRelayListEvent } = useNostr()
|
const { pubkey, publish, updateRelayListEvent } = useNostr()
|
||||||
const [pushing, setPushing] = useState(false)
|
const [pushing, setPushing] = useState(false)
|
||||||
|
|
||||||
|
|
@ -33,7 +35,7 @@ export default function SaveButton({
|
||||||
return (
|
return (
|
||||||
<Button className="w-full" disabled={!pubkey || pushing || !hasChange} onClick={save}>
|
<Button className="w-full" disabled={!pubkey || pushing || !hasChange} onClick={save}>
|
||||||
{pushing ? <Loader className="animate-spin" /> : <CloudUpload />}
|
{pushing ? <Loader className="animate-spin" /> : <CloudUpload />}
|
||||||
Save
|
{t('Save')}
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ export default {
|
||||||
Mailbox: '邮箱',
|
Mailbox: '邮箱',
|
||||||
'Read & Write Relays': '读写服务器',
|
'Read & Write Relays': '读写服务器',
|
||||||
'read relays description':
|
'read relays description':
|
||||||
'读服务器用于寻找与您有关的事件。其他用户会将想要你看到的事件发布到您的读服务器。',
|
'读服务器用于寻找与您有关的事件。其他用户会将想要您看到的事件发布到您的读服务器,比如回复、点赞转发……',
|
||||||
'write relays description':
|
'write relays description':
|
||||||
'写服务器用于发布您的事件。其他用户会从您的写服务器寻找您发布的事件。',
|
'写服务器用于发布您的事件。其他用户会从您的写服务器寻找您发布的事件。',
|
||||||
'read & write relays notice': '读服务器和写服务器的数量都应尽量保持在 2 到 4 个之间。',
|
'read & write relays notice': '读服务器和写服务器的数量都应尽量保持在 2 到 4 个之间。',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue