From b4618e8cd1108cdac934fcb27f71fce14a4e9af6 Mon Sep 17 00:00:00 2001 From: codytseng Date: Tue, 8 Apr 2025 14:38:14 +0800 Subject: [PATCH] feat: i18n --- src/i18n/locales/ar.ts | 5 ++++- src/i18n/locales/de.ts | 5 ++++- src/i18n/locales/en.ts | 5 ++++- src/i18n/locales/es.ts | 5 ++++- src/i18n/locales/fr.ts | 5 ++++- src/i18n/locales/it.ts | 5 ++++- src/i18n/locales/ja.ts | 5 ++++- src/i18n/locales/pl.ts | 5 ++++- src/i18n/locales/pt-BR.ts | 5 ++++- src/i18n/locales/pt-PT.ts | 5 ++++- src/i18n/locales/ru.ts | 5 ++++- src/i18n/locales/zh.ts | 5 ++++- src/pages/secondary/PostSettingsPage/index.tsx | 2 +- src/pages/secondary/SettingsPage/index.tsx | 2 +- 14 files changed, 50 insertions(+), 14 deletions(-) diff --git a/src/i18n/locales/ar.ts b/src/i18n/locales/ar.ts index 531fbbd..ecd12f7 100644 --- a/src/i18n/locales/ar.ts +++ b/src/i18n/locales/ar.ts @@ -211,6 +211,9 @@ export default { 'Favorite Relays': 'الريلايات المفضلة', "Following's Favorites": 'المفضلات من المتابعين', 'no more relays': 'لا توجد مزيد من الريلايات', - 'Favorited by': 'المفضلة من قبل' + 'Favorited by': 'المفضلة من قبل', + 'Post settings': 'إعدادات النشر', + 'Media upload service': 'خدمة تحميل الوسائط', + 'Choose a relay': 'اختر ريلاي' } } diff --git a/src/i18n/locales/de.ts b/src/i18n/locales/de.ts index ec53df3..e5d978d 100644 --- a/src/i18n/locales/de.ts +++ b/src/i18n/locales/de.ts @@ -215,6 +215,9 @@ export default { 'Favorite Relays': 'Lieblings-Relays', "Following's Favorites": 'Favoriten der Folgenden', 'no more relays': 'keine weiteren Relays', - 'Favorited by': 'Favorisiert von' + 'Favorited by': 'Favorisiert von', + 'Post settings': 'Beitragseinstellungen', + 'Media upload service': 'Medien-Upload-Service', + 'Choose a relay': 'Wähle ein Relay' } } diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index b2683a5..8b58031 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -211,6 +211,9 @@ export default { 'Favorite Relays': 'Favorite Relays', "Following's Favorites": "Following's Favorites", 'no more relays': 'no more relays', - 'Favorited by': 'Favorited by' + 'Favorited by': 'Favorited by', + 'Post settings': 'Post settings', + 'Media upload service': 'Media upload service', + 'Choose a relay': 'Choose a relay' } } diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index 815821d..d9d43d4 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -215,6 +215,9 @@ export default { 'Favorite Relays': 'Relés favoritos', "Following's Favorites": 'Favoritos de los seguidos', 'no more relays': 'no hay más relés', - 'Favorited by': 'Favoritado por' + 'Favorited by': 'Favoritado por', + 'Post settings': 'Ajustes de publicación', + 'Media upload service': 'Servicio de carga de medios', + 'Choose a relay': 'Selecciona un relé' } } diff --git a/src/i18n/locales/fr.ts b/src/i18n/locales/fr.ts index 32ad777..e380d44 100644 --- a/src/i18n/locales/fr.ts +++ b/src/i18n/locales/fr.ts @@ -214,6 +214,9 @@ export default { 'Favorite Relays': 'Relais favoris', "Following's Favorites": "Following's Favorites", 'no more relays': 'aucun autre relais', - 'Favorited by': 'Favorisé par' + 'Favorited by': 'Favorisé par', + 'Post settings': 'Paramètres de publication', + 'Media upload service': 'Service de téléchargement de médias', + 'Choose a relay': 'Choisir un relais' } } diff --git a/src/i18n/locales/it.ts b/src/i18n/locales/it.ts index bd59a3b..6c612ad 100644 --- a/src/i18n/locales/it.ts +++ b/src/i18n/locales/it.ts @@ -214,6 +214,9 @@ export default { 'Favorite Relays': 'Relay preferiti', "Following's Favorites": 'Preferiti dei seguiti', 'no more relays': 'niente più relay', - 'Favorited by': 'Preferito da' + 'Favorited by': 'Preferito da', + 'Post settings': 'Impostazioni post', + 'Media upload service': 'Servizio di caricamento media', + 'Choose a relay': 'Scegli un relay' } } diff --git a/src/i18n/locales/ja.ts b/src/i18n/locales/ja.ts index 30f1bb8..820af42 100644 --- a/src/i18n/locales/ja.ts +++ b/src/i18n/locales/ja.ts @@ -212,6 +212,9 @@ export default { 'Favorite Relays': 'お気に入りのリレイ', "Following's Favorites": 'フォロー中のお気に入り', 'no more relays': 'これ以上のリレイはありません', - 'Favorited by': 'お気に入り' + 'Favorited by': 'お気に入り', + 'Post settings': '投稿設定', + 'Media upload service': 'メディアアップロードサービス', + 'Choose a relay': 'リレイを選択' } } diff --git a/src/i18n/locales/pl.ts b/src/i18n/locales/pl.ts index b75f2e7..a835e8c 100644 --- a/src/i18n/locales/pl.ts +++ b/src/i18n/locales/pl.ts @@ -213,6 +213,9 @@ export default { 'Favorite Relays': 'Ulubione transmitery', "Following's Favorites": 'Ulubione transmitery obserwowanych', 'no more relays': 'brak kolejnych transmiterów', - 'Favorited by': 'Ulubione przez' + 'Favorited by': 'Ulubione przez', + 'Post settings': 'Ustawienia publikacji', + 'Media upload service': 'Usługa przesyłania mediów', + 'Choose a relay': 'Wybierz transmiter' } } diff --git a/src/i18n/locales/pt-BR.ts b/src/i18n/locales/pt-BR.ts index aa5936d..376155c 100644 --- a/src/i18n/locales/pt-BR.ts +++ b/src/i18n/locales/pt-BR.ts @@ -213,6 +213,9 @@ export default { 'Favorite Relays': 'Relés favoritos', "Following's Favorites": 'Favoritos de quem você segue', 'no more relays': 'não há mais relés', - 'Favorited by': 'Favoritado por' + 'Favorited by': 'Favoritado por', + 'Post settings': 'Ajustes de publicação', + 'Media upload service': 'Serviço de upload de mídia', + 'Choose a relay': 'Escolher um relé' } } diff --git a/src/i18n/locales/pt-PT.ts b/src/i18n/locales/pt-PT.ts index e3f8ad9..a57a1e7 100644 --- a/src/i18n/locales/pt-PT.ts +++ b/src/i18n/locales/pt-PT.ts @@ -214,6 +214,9 @@ export default { 'Favorite Relays': 'Relés Favoritos', "Following's Favorites": 'Favoritos de quem você segue', 'no more relays': 'não há mais relés', - 'Favorited by': 'Favoritado por' + 'Favorited by': 'Favoritado por', + 'Post settings': 'Configurações de Postagem', + 'Media upload service': 'Serviço de Upload de Mídia', + 'Choose a relay': 'Escolher um Relé' } } diff --git a/src/i18n/locales/ru.ts b/src/i18n/locales/ru.ts index bbd2d19..b3b615b 100644 --- a/src/i18n/locales/ru.ts +++ b/src/i18n/locales/ru.ts @@ -215,6 +215,9 @@ export default { 'Favorite Relays': 'Избранные ретрансляторы', "Following's Favorites": 'Избранные ретрансляторы подписчиков', 'no more relays': 'больше нет ретрансляторов', - 'Favorited by': 'Избранные у' + 'Favorited by': 'Избранные у', + 'Post settings': 'Настройки публикации', + 'Media upload service': 'Служба загрузки медиафайлов', + 'Choose a relay': 'Выберите ретранслятор' } } diff --git a/src/i18n/locales/zh.ts b/src/i18n/locales/zh.ts index 0e7afcf..30e3f5a 100644 --- a/src/i18n/locales/zh.ts +++ b/src/i18n/locales/zh.ts @@ -212,6 +212,9 @@ export default { 'Favorite Relays': '收藏的服务器', "Following's Favorites": '关注人的收藏', 'no more relays': '没有更多服务器了', - 'Favorited by': '收藏自' + 'Favorited by': '收藏自', + 'Post settings': '发布设置', + 'Media upload service': '媒体上传服务', + 'Choose a relay': '选择一个服务器' } } diff --git a/src/pages/secondary/PostSettingsPage/index.tsx b/src/pages/secondary/PostSettingsPage/index.tsx index 4a16464..9953947 100644 --- a/src/pages/secondary/PostSettingsPage/index.tsx +++ b/src/pages/secondary/PostSettingsPage/index.tsx @@ -7,7 +7,7 @@ const PostSettingsPage = forwardRef(({ index }: { index?: number }, ref) => { const { t } = useTranslation() return ( - +
diff --git a/src/pages/secondary/SettingsPage/index.tsx b/src/pages/secondary/SettingsPage/index.tsx index 253d4d7..44370cc 100644 --- a/src/pages/secondary/SettingsPage/index.tsx +++ b/src/pages/secondary/SettingsPage/index.tsx @@ -91,7 +91,7 @@ const SettingsPage = forwardRef(({ index }: { index?: number }, ref) => { push(toPostSettings())}>
-
{t('Posts')}
+
{t('Post settings')}