chore: improve translations

This commit is contained in:
codytseng 2025-11-16 14:35:34 +08:00
parent dada8c83b5
commit cde0b49e2e
19 changed files with 149 additions and 24 deletions

View file

@ -74,7 +74,7 @@ export function useMenuActions({
const items = []
if (pubkey && event.pubkey === pubkey) {
items.push({
label: <div className="text-left"> {t('Write relays')}</div>,
label: <div className="text-left"> {t('Optimal relays')}</div>,
onClick: async () => {
closeDrawer()
const promise = async () => {
@ -86,10 +86,12 @@ export function useMenuActions({
toast.promise(promise, {
loading: t('Republishing...'),
success: () => {
return t('Successfully republish to your write relays')
return t(
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)"
)
},
error: (err) => {
return t('Failed to republish to your write relays: {{error}}', {
return t('Failed to republish to optimal relays: {{error}}', {
error: err.message
})
}