chore: improve translations
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
DropdownMenuSeparator,
|
||||
DropdownMenuTrigger
|
||||
} from '@/components/ui/dropdown-menu'
|
||||
import { Label } from '@/components/ui/label'
|
||||
import { Separator } from '@/components/ui/separator'
|
||||
import { isProtectedEvent } from '@/lib/event'
|
||||
import { simplifyUrl } from '@/lib/url'
|
||||
@@ -67,7 +68,7 @@ export default function PostRelaySelector({
|
||||
if (postTargetItems.length === 1) {
|
||||
const item = postTargetItems[0]
|
||||
if (item.type === 'writeRelays') {
|
||||
return t('Write relays')
|
||||
return t('Optimal relays')
|
||||
}
|
||||
if (item.type === 'relay') {
|
||||
return simplifyUrl(item.url)
|
||||
@@ -89,7 +90,7 @@ export default function PostRelaySelector({
|
||||
return count
|
||||
}, 0)
|
||||
if (hasWriteRelays) {
|
||||
return t('Write relays and {{count}} other relays', { count: relayCount })
|
||||
return t('Optimal relays and {{count}} other relays', { count: relayCount })
|
||||
}
|
||||
return t('{{count}} relays', { count: relayCount })
|
||||
}, [postTargetItems])
|
||||
@@ -207,7 +208,7 @@ export default function PostRelaySelector({
|
||||
return (
|
||||
<>
|
||||
<div className="flex items-center gap-2">
|
||||
{t('Post to')}
|
||||
<Label>{t('Post to')}</Label>
|
||||
<Button
|
||||
variant="outline"
|
||||
className="px-2 flex-1 max-w-fit justify-start"
|
||||
@@ -234,7 +235,7 @@ export default function PostRelaySelector({
|
||||
return (
|
||||
<DropdownMenu>
|
||||
<div className="flex items-center gap-2">
|
||||
{t('Post to')}
|
||||
<Label>{t('Post to')}</Label>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button variant="outline" className="px-2 flex-1 max-w-fit justify-start">
|
||||
<div className="truncate">{description}</div>
|
||||
|
||||
@@ -543,6 +543,13 @@ export default {
|
||||
'Go to relay': 'الانتقال إلى المرحل',
|
||||
'View discussions about this': 'عرض المناقشات حول هذا المحتوى',
|
||||
'Open link': 'فتح الرابط',
|
||||
'View Nostr discussions': 'عرض مناقشات Nostr'
|
||||
'View Nostr discussions': 'عرض مناقشات Nostr',
|
||||
'Optimal relays': 'المرحلات المثلى',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'تم إعادة النشر بنجاح إلى المرحلات المثلى (مرحلات الكتابة الخاصة بك ومرحلات القراءة للمستخدمين المذكورين)',
|
||||
'Failed to republish to optimal relays: {{error}}': 'فشل إعادة النشر إلى المرحلات المثلى: {{error}}',
|
||||
'External Content': 'محتوى خارجي',
|
||||
Highlight: 'تسليط الضوء',
|
||||
'Optimal relays and {{count}} other relays': 'المرحلات المثلى و {{count}} مرحلات أخرى'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -558,6 +558,14 @@ export default {
|
||||
'Go to relay': 'Zum Relay gehen',
|
||||
'View discussions about this': 'Diskussionen über diesen Inhalt anzeigen',
|
||||
'Open link': 'Link öffnen',
|
||||
'View Nostr discussions': 'Nostr-Diskussionen anzeigen'
|
||||
'View Nostr discussions': 'Nostr-Diskussionen anzeigen',
|
||||
'Optimal relays': 'Optimale Relays',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'Erfolgreich auf optimale Relays neu veröffentlicht (Ihre Schreib-Relays und die Lese-Relays der erwähnten Benutzer)',
|
||||
'Failed to republish to optimal relays: {{error}}':
|
||||
'Fehler beim Neuveröffentlichen auf optimale Relays: {{error}}',
|
||||
'External Content': 'Externer Inhalt',
|
||||
Highlight: 'Hervorheben',
|
||||
'Optimal relays and {{count}} other relays': 'Optimale Relays und {{count}} andere Relays'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -543,6 +543,13 @@ export default {
|
||||
'Go to relay': 'Go to relay',
|
||||
'View discussions about this': 'View discussions about this',
|
||||
'Open link': 'Open link',
|
||||
'View Nostr discussions': 'View Nostr discussions'
|
||||
'View Nostr discussions': 'View Nostr discussions',
|
||||
'Optimal relays': 'Optimal relays',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)",
|
||||
'Failed to republish to optimal relays: {{error}}': 'Failed to republish to optimal relays: {{error}}',
|
||||
'External Content': 'External Content',
|
||||
Highlight: 'Highlight',
|
||||
'Optimal relays and {{count}} other relays': 'Optimal relays and {{count}} other relays'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -554,6 +554,13 @@ export default {
|
||||
'Go to relay': 'Ir al relay',
|
||||
'View discussions about this': 'Ver discusiones sobre este contenido',
|
||||
'Open link': 'Abrir enlace',
|
||||
'View Nostr discussions': 'Ver discusiones de Nostr'
|
||||
'View Nostr discussions': 'Ver discusiones de Nostr',
|
||||
'Optimal relays': 'Relays óptimos',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'Republicado exitosamente en relays óptimos (tus relays de escritura y los relays de lectura de los usuarios mencionados)',
|
||||
'Failed to republish to optimal relays: {{error}}': 'Error al republicar en relays óptimos: {{error}}',
|
||||
'External Content': 'Contenido externo',
|
||||
Highlight: 'Destacado',
|
||||
'Optimal relays and {{count}} other relays': 'Relays óptimos y {{count}} otros relays'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -548,6 +548,13 @@ export default {
|
||||
'Go to relay': 'رفتن به رله',
|
||||
'View discussions about this': 'مشاهده بحثها درباره این محتوا',
|
||||
'Open link': 'باز کردن لینک',
|
||||
'View Nostr discussions': 'مشاهده بحثهای Nostr'
|
||||
'View Nostr discussions': 'مشاهده بحثهای Nostr',
|
||||
'Optimal relays': 'رلههای بهینه',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'با موفقیت در رلههای بهینه منتشر شد (رلههای نوشتن شما و رلههای خواندن کاربران ذکر شده)',
|
||||
'Failed to republish to optimal relays: {{error}}': 'خطا در انتشار مجدد در رلههای بهینه: {{error}}',
|
||||
'External Content': 'محتوای خارجی',
|
||||
Highlight: 'برجستهسازی',
|
||||
'Optimal relays and {{count}} other relays': 'رلههای بهینه و {{count}} رله دیگر'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -557,6 +557,13 @@ export default {
|
||||
'Go to relay': 'Aller au relais',
|
||||
'View discussions about this': 'Voir les discussions sur ce contenu',
|
||||
'Open link': 'Ouvrir le lien',
|
||||
'View Nostr discussions': 'Voir les discussions Nostr'
|
||||
'View Nostr discussions': 'Voir les discussions Nostr',
|
||||
'Optimal relays': 'Relais optimaux',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
"Republié avec succès sur les relais optimaux (vos relais d'écriture et les relais de lecture des utilisateurs mentionnés)",
|
||||
'Failed to republish to optimal relays: {{error}}': 'Échec de la republication sur les relais optimaux : {{error}}',
|
||||
'External Content': 'Contenu externe',
|
||||
Highlight: 'Surligner',
|
||||
'Optimal relays and {{count}} other relays': 'Relais optimaux et {{count}} autres relais'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -549,6 +549,13 @@ export default {
|
||||
'Go to relay': 'रिले पर जाएं',
|
||||
'View discussions about this': 'इस सामग्री के बारे में चर्चाएँ देखें',
|
||||
'Open link': 'लिंक खोलें',
|
||||
'View Nostr discussions': 'Nostr चर्चाएँ देखें'
|
||||
'View Nostr discussions': 'Nostr चर्चाएँ देखें',
|
||||
'Optimal relays': 'इष्टतम रिले',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'इष्टतम रिले पर सफलतापूर्वक पुनः प्रकाशित (आपके लेखन रिले और उल्लिखित उपयोगकर्ताओं के पठन रिले)',
|
||||
'Failed to republish to optimal relays: {{error}}': 'इष्टतम रिले पर पुनः प्रकाशित करने में विफल: {{error}}',
|
||||
'External Content': 'बाहरी सामग्री',
|
||||
Highlight: 'हाइलाइट',
|
||||
'Optimal relays and {{count}} other relays': 'इष्टतम रिले और {{count}} अन्य रिले'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -543,6 +543,14 @@ export default {
|
||||
'Go to relay': 'Ugrás a relay-hez',
|
||||
'View discussions about this': 'Beszélgetések megtekintése erről a tartalomról',
|
||||
'Open link': 'Link megnyitása',
|
||||
'View Nostr discussions': 'Nostr beszélgetések megtekintése'
|
||||
'View Nostr discussions': 'Nostr beszélgetések megtekintése',
|
||||
'Optimal relays': 'Optimális relay-ek',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'Sikeresen újra közzétéve az optimális relay-eken (az Ön írási relay-ei és az említett felhasználók olvasási relay-ei)',
|
||||
'Failed to republish to optimal relays: {{error}}':
|
||||
'Nem sikerült újra közzétenni az optimális relay-eken: {{error}}',
|
||||
'External Content': 'Külső tartalom',
|
||||
Highlight: 'Kiemelés',
|
||||
'Optimal relays and {{count}} other relays': 'Optimális relay-ek és {{count}} másik relay'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -553,6 +553,13 @@ export default {
|
||||
'Go to relay': 'Vai al relay',
|
||||
'View discussions about this': 'Visualizza discussioni su questo contenuto',
|
||||
'Open link': 'Apri link',
|
||||
'View Nostr discussions': 'Visualizza discussioni Nostr'
|
||||
'View Nostr discussions': 'Visualizza discussioni Nostr',
|
||||
'Optimal relays': 'Relay ottimali',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'Ripubblicato con successo sui relay ottimali (i tuoi relay di scrittura e i relay di lettura degli utenti menzionati)',
|
||||
'Failed to republish to optimal relays: {{error}}': 'Errore nella ripubblicazione sui relay ottimali: {{error}}',
|
||||
'External Content': 'Contenuto esterno',
|
||||
Highlight: 'Evidenzia',
|
||||
'Optimal relays and {{count}} other relays': 'Relay ottimali e {{count}} altri relay'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -548,6 +548,13 @@ export default {
|
||||
'Go to relay': 'リレーへ移動',
|
||||
'View discussions about this': 'このコンテンツに関する議論を表示',
|
||||
'Open link': 'リンクを開く',
|
||||
'View Nostr discussions': 'Nostr の議論を表示'
|
||||
'View Nostr discussions': 'Nostr の議論を表示',
|
||||
'Optimal relays': '最適なリレー',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'最適なリレー(あなたの書き込みリレーと言及されたユーザーの読み取りリレー)への再公開に成功しました',
|
||||
'Failed to republish to optimal relays: {{error}}': '最適なリレーへの再公開に失敗しました:{{error}}',
|
||||
'External Content': '外部コンテンツ',
|
||||
Highlight: 'ハイライト',
|
||||
'Optimal relays and {{count}} other relays': '最適なリレーと他の{{count}}個のリレー'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -548,6 +548,13 @@ export default {
|
||||
'Go to relay': '릴레이로 이동',
|
||||
'View discussions about this': '이 콘텐츠에 대한 토론 보기',
|
||||
'Open link': '링크 열기',
|
||||
'View Nostr discussions': 'Nostr 토론 보기'
|
||||
'View Nostr discussions': 'Nostr 토론 보기',
|
||||
'Optimal relays': '최적 릴레이',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'최적 릴레이(쓰기 릴레이 및 언급된 사용자의 읽기 릴레이)에 성공적으로 재게시되었습니다',
|
||||
'Failed to republish to optimal relays: {{error}}': '최적 릴레이에 재게시 실패: {{error}}',
|
||||
'External Content': '외부 콘텐츠',
|
||||
Highlight: '하이라이트',
|
||||
'Optimal relays and {{count}} other relays': '최적 릴레이 및 기타 {{count}}개 릴레이'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -553,6 +553,14 @@ export default {
|
||||
'Go to relay': 'Przejdź do przekaźnika',
|
||||
'View discussions about this': 'Zobacz dyskusje o tej treści',
|
||||
'Open link': 'Otwórz link',
|
||||
'View Nostr discussions': 'Zobacz dyskusje Nostr'
|
||||
'View Nostr discussions': 'Zobacz dyskusje Nostr',
|
||||
'Optimal relays': 'Optymalne przekaźniki',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'Pomyślnie opublikowano ponownie na optymalnych przekaźnikach (Twoje przekaźniki zapisu i przekaźniki odczytu wspomnianych użytkowników)',
|
||||
'Failed to republish to optimal relays: {{error}}':
|
||||
'Nie udało się opublikować ponownie na optymalnych przekaźnikach: {{error}}',
|
||||
'External Content': 'Treść zewnętrzna',
|
||||
Highlight: 'Podświetl',
|
||||
'Optimal relays and {{count}} other relays': 'Optymalne przekaźniki i {{count}} innych przekaźników'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -549,6 +549,13 @@ export default {
|
||||
'Go to relay': 'Ir para relay',
|
||||
'View discussions about this': 'Ver discussões sobre este conteúdo',
|
||||
'Open link': 'Abrir link',
|
||||
'View Nostr discussions': 'Ver comentários'
|
||||
'View Nostr discussions': 'Ver comentários',
|
||||
'Optimal relays': 'Relays ideais',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'Republicado com sucesso nos relays ideais (seus relays de escrita e os relays de leitura dos usuários mencionados)',
|
||||
'Failed to republish to optimal relays: {{error}}': 'Falha ao republicar nos relays ideais: {{error}}',
|
||||
'External Content': 'Conteúdo externo',
|
||||
Highlight: 'Destacar',
|
||||
'Optimal relays and {{count}} other relays': 'Relays ideais e {{count}} outros relays'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -552,6 +552,13 @@ export default {
|
||||
'Go to relay': 'Ir para relay',
|
||||
'View discussions about this': 'Ver discussões sobre este conteúdo',
|
||||
'Open link': 'Abrir ligação',
|
||||
'View Nostr discussions': 'Ver discussões do Nostr'
|
||||
'View Nostr discussions': 'Ver discussões do Nostr',
|
||||
'Optimal relays': 'Relays ideais',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'Republicado com sucesso nos relays ideais (os seus relays de escrita e os relays de leitura dos utilizadores mencionados)',
|
||||
'Failed to republish to optimal relays: {{error}}': 'Falha ao republicar nos relays ideais: {{error}}',
|
||||
'External Content': 'Conteúdo externo',
|
||||
Highlight: 'Destacar',
|
||||
'Optimal relays and {{count}} other relays': 'Relays ideais e {{count}} outros relays'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -554,6 +554,13 @@ export default {
|
||||
'Go to relay': 'Перейти к релею',
|
||||
'View discussions about this': 'Просмотреть обсуждения об этом контенте',
|
||||
'Open link': 'Открыть ссылку',
|
||||
'View Nostr discussions': 'Просмотреть обсуждения Nostr'
|
||||
'View Nostr discussions': 'Просмотреть обсуждения Nostr',
|
||||
'Optimal relays': 'Оптимальные релеи',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'Успешно опубликовано в оптимальные релеи (ваши релеи для записи и релеи для чтения упомянутых пользователей)',
|
||||
'Failed to republish to optimal relays: {{error}}': 'Не удалось опубликовать в оптимальные релеи: {{error}}',
|
||||
'External Content': 'Внешний контент',
|
||||
Highlight: 'Выделить',
|
||||
'Optimal relays and {{count}} other relays': 'Оптимальные релеи и {{count}} других релеев'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -541,6 +541,13 @@ export default {
|
||||
'Go to relay': 'ไปที่รีเลย์',
|
||||
'View discussions about this': 'ดูการสนทนาเกี่ยวกับเนื้อหานี้',
|
||||
'Open link': 'เปิดลิงก์',
|
||||
'View Nostr discussions': 'ดูการสนทนา Nostr'
|
||||
'View Nostr discussions': 'ดูการสนทนา Nostr',
|
||||
'Optimal relays': 'รีเลย์ที่เหมาะสม',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'เผยแพร่ซ้ำไปยังรีเลย์ที่เหมาะสมสำเร็จ (รีเลย์เขียนของคุณและรีเลย์อ่านของผู้ใช้ที่กล่าวถึง)',
|
||||
'Failed to republish to optimal relays: {{error}}': 'เผยแพร่ซ้ำไปยังรีเลย์ที่เหมาะสมล้มเหลว: {{error}}',
|
||||
'External Content': 'เนื้อหาภายนอก',
|
||||
Highlight: 'ไฮไลต์',
|
||||
'Optimal relays and {{count}} other relays': 'รีเลย์ที่เหมาะสมและรีเลย์อื่น {{count}} รายการ'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -536,6 +536,13 @@ export default {
|
||||
'Go to relay': '跳转到中继器',
|
||||
'View discussions about this': '查看关于此内容的讨论',
|
||||
'Open link': '打开链接',
|
||||
'View Nostr discussions': '查看 Nostr 讨论'
|
||||
'View Nostr discussions': '查看 Nostr 讨论',
|
||||
'Optimal relays': '最佳中继器',
|
||||
"Successfully republish to optimal relays (your write relays and mentioned users' read relays)":
|
||||
'成功重新发布到最佳中继器(你的写入中继器和被提及用户的读取中继器)',
|
||||
'Failed to republish to optimal relays: {{error}}': '重新发布到最佳中继器失败:{{error}}',
|
||||
'External Content': '外部内容',
|
||||
Highlight: '高亮',
|
||||
'Optimal relays and {{count}} other relays': '最佳中继器和其他 {{count}} 个中继器'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user