diff --git a/src/i18n/locales/ar.ts b/src/i18n/locales/ar.ts index f8683ec..9bb6c38 100644 --- a/src/i18n/locales/ar.ts +++ b/src/i18n/locales/ar.ts @@ -278,6 +278,7 @@ export default { 'No pubkeys found from {url}': 'لم يتم العثور على مفاتيح عامة من {{url}}', 'Translating...': 'جارٍ الترجمة...', Translate: 'ترجمة', - 'Show original': 'عرض الأصل' + 'Show original': 'عرض الأصل', + Website: 'الموقع الإلكتروني' } } diff --git a/src/i18n/locales/de.ts b/src/i18n/locales/de.ts index 48383fb..5a26ddf 100644 --- a/src/i18n/locales/de.ts +++ b/src/i18n/locales/de.ts @@ -285,6 +285,7 @@ export default { 'No pubkeys found from {url}': 'Keine Pubkeys von {{url}} gefunden', 'Translating...': 'Übersetze...', Translate: 'Übersetzen', - 'Show original': 'Original anzeigen' + 'Show original': 'Original anzeigen', + Website: 'Website' } } diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index f5f7db1..0514b36 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -278,6 +278,7 @@ export default { 'No pubkeys found from {url}': 'No pubkeys found from {{url}}', 'Translating...': 'Translating...', Translate: 'Translate', - 'Show original': 'Show original' + 'Show original': 'Show original', + Website: 'Website' } } diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index 23eeb91..f840f27 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -283,6 +283,7 @@ export default { 'No pubkeys found from {url}': 'No se encontraron pubkeys desde {{url}}', 'Translating...': 'Traduciendo...', Translate: 'Traducir', - 'Show original': 'Mostrar original' + 'Show original': 'Mostrar original', + Website: 'Sitio web' } } diff --git a/src/i18n/locales/fr.ts b/src/i18n/locales/fr.ts index 3442dee..708d686 100644 --- a/src/i18n/locales/fr.ts +++ b/src/i18n/locales/fr.ts @@ -283,6 +283,7 @@ export default { 'No pubkeys found from {url}': 'Aucun pubkey trouvé à partir de {{url}}', 'Translating...': 'Traduction en cours...', Translate: 'Traduire', - 'Show original': 'Afficher l’original' + 'Show original': 'Afficher l’original', + Website: 'Site Web' } } diff --git a/src/i18n/locales/it.ts b/src/i18n/locales/it.ts index 2faf8a7..c9d8f3e 100644 --- a/src/i18n/locales/it.ts +++ b/src/i18n/locales/it.ts @@ -282,6 +282,7 @@ export default { 'No pubkeys found from {url}': 'Nessun pubkey trovato da {{url}}', 'Translating...': 'Traduzione in corso...', Translate: 'Traduci', - 'Show original': 'Mostra originale' + 'Show original': 'Mostra originale', + Website: 'Sito web' } } diff --git a/src/i18n/locales/ja.ts b/src/i18n/locales/ja.ts index 9fb7ba7..9a52495 100644 --- a/src/i18n/locales/ja.ts +++ b/src/i18n/locales/ja.ts @@ -280,6 +280,7 @@ export default { 'No pubkeys found from {url}': 'URL {{url}} からのpubkeyは見つかりませんでした', 'Translating...': '翻訳中...', Translate: '翻訳', - 'Show original': '原文を表示' + 'Show original': '原文を表示', + Website: 'ウェブサイト' } } diff --git a/src/i18n/locales/pl.ts b/src/i18n/locales/pl.ts index bb59f8f..28d2425 100644 --- a/src/i18n/locales/pl.ts +++ b/src/i18n/locales/pl.ts @@ -281,6 +281,7 @@ export default { 'No pubkeys found from {url}': 'Nie znaleziono kluczy publicznych z {{url}}', 'Translating...': 'Tłumaczenie...', Translate: 'Przetłumacz', - 'Show original': 'Pokaż oryginał' + 'Show original': 'Pokaż oryginał', + Website: 'Strona internetowa' } } diff --git a/src/i18n/locales/pt-BR.ts b/src/i18n/locales/pt-BR.ts index 220ae2f..a8d0068 100644 --- a/src/i18n/locales/pt-BR.ts +++ b/src/i18n/locales/pt-BR.ts @@ -281,6 +281,7 @@ export default { 'No pubkeys found from {url}': 'Nenhum pubkey encontrado em {{url}}', 'Translating...': 'Traduzindo...', Translate: 'Traduzir', - 'Show original': 'Mostrar original' + 'Show original': 'Mostrar original', + Website: 'Website' } } diff --git a/src/i18n/locales/pt-PT.ts b/src/i18n/locales/pt-PT.ts index 1c47bc8..d4d4654 100644 --- a/src/i18n/locales/pt-PT.ts +++ b/src/i18n/locales/pt-PT.ts @@ -282,6 +282,7 @@ export default { 'No pubkeys found from {url}': 'Nenhum pubkey encontrado em {{url}}', 'Translating...': 'Traduzindo...', Translate: 'Traduzir', - 'Show original': 'Mostrar original' + 'Show original': 'Mostrar original', + Website: 'Website' } } diff --git a/src/i18n/locales/ru.ts b/src/i18n/locales/ru.ts index c2c21f1..9a0aa0a 100644 --- a/src/i18n/locales/ru.ts +++ b/src/i18n/locales/ru.ts @@ -283,6 +283,7 @@ export default { 'No pubkeys found from {url}': 'Не найдено pubkeys из {{url}}', 'Translating...': 'Перевод...', Translate: 'Перевести', - 'Show original': 'Показать оригинал' + 'Show original': 'Показать оригинал', + Website: 'Веб-сайт' } } diff --git a/src/i18n/locales/th.ts b/src/i18n/locales/th.ts index 1274799..689816e 100644 --- a/src/i18n/locales/th.ts +++ b/src/i18n/locales/th.ts @@ -277,6 +277,7 @@ export default { 'No pubkeys found from {url}': 'ไม่พบ pubkeys จาก {{url}}', 'Translating...': 'กำลังแปล...', Translate: 'แปล', - 'Show original': 'แสดงต้นฉบับ' + 'Show original': 'แสดงต้นฉบับ', + Website: 'เว็บไซต์' } } diff --git a/src/i18n/locales/zh.ts b/src/i18n/locales/zh.ts index dc47549..6239fcc 100644 --- a/src/i18n/locales/zh.ts +++ b/src/i18n/locales/zh.ts @@ -278,6 +278,7 @@ export default { 'No pubkeys found from {url}': '在 {{url}} 中未找到 pubkeys', 'Translating...': '翻译中...', Translate: '翻译', - 'Show original': '显示原文' + 'Show original': '显示原文', + Website: '网站' } } diff --git a/src/pages/secondary/ProfileEditorPage/index.tsx b/src/pages/secondary/ProfileEditorPage/index.tsx index 9b16759..61ba708 100644 --- a/src/pages/secondary/ProfileEditorPage/index.tsx +++ b/src/pages/secondary/ProfileEditorPage/index.tsx @@ -3,6 +3,7 @@ import ProfileBanner from '@/components/ProfileBanner' import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar' import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' +import { Label } from '@/components/ui/label' import { Textarea } from '@/components/ui/textarea' import SecondaryPageLayout from '@/layouts/SecondaryPageLayout' import { isEmail } from '@/lib/common' @@ -22,6 +23,7 @@ const ProfileEditorPage = forwardRef(({ index }: { index?: number }, ref) => { const [avatar, setAvatar] = useState('') const [username, setUsername] = useState('') const [about, setAbout] = useState('') + const [website, setWebsite] = useState('') const [nip05, setNip05] = useState('') const [nip05Error, setNip05Error] = useState('') const [lightningAddress, setLightningAddress] = useState('') @@ -41,6 +43,7 @@ const ProfileEditorPage = forwardRef(({ index }: { index?: number }, ref) => { setAvatar(profile.avatar ?? '') setUsername(profile.original_username ?? '') setAbout(profile.about ?? '') + setWebsite(profile.website ?? '') setNip05(profile.nip05 ?? '') setLightningAddress(profile.lightningAddress || '') } else { @@ -48,6 +51,7 @@ const ProfileEditorPage = forwardRef(({ index }: { index?: number }, ref) => { setAvatar('') setUsername('') setAbout('') + setWebsite('') setNip05('') setLightningAddress('') } @@ -83,6 +87,7 @@ const ProfileEditorPage = forwardRef(({ index }: { index?: number }, ref) => { displayName: username, name: oldProfileContent.name ?? username, about, + website, nip05, banner, picture: avatar, @@ -129,7 +134,7 @@ const ProfileEditorPage = forwardRef(({ index }: { index?: number }, ref) => {
{uploadingBanner ? ( @@ -155,10 +160,11 @@ const ProfileEditorPage = forwardRef(({ index }: { index?: number }, ref) => {
-
+
- {t('Display Name')} + { setUsername(e.target.value) @@ -167,8 +173,9 @@ const ProfileEditorPage = forwardRef(({ index }: { index?: number }, ref) => { /> - {t('Bio')} +