fix: wrong route check, default time filter value, missing translation

This commit is contained in:
Tom (plebeius.eth)
2024-06-11 12:04:16 +02:00
parent fb02814118
commit 0831e757bb
38 changed files with 75 additions and 39 deletions
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "تصفية الوقت",
"subplebbit_offline_info": "قد يكون الرد على الرسائل غير متاح حالياً وقد تفشل النشر.",
"posts_last_synced_info": "آخر تزامن الرسائل {{time}}، قد يكون الرد على الرسائل غير متاح حالياً وقد تفشل النشر.",
"newer_than": "أحدث من"
"newer_than": "أحدث من",
"no_posts": "لا توجد مشاركات"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "সময় ফিল্টার",
"subplebbit_offline_info": "সাবপ্লেবিট অফলাইন হতে পারে এবং প্রকাশনা ব্যর্থ হতে পারে।",
"posts_last_synced_info": "পোস্টগুলি সর্বশেষ সিঙ্ক হয়েছে {{time}}, সাবপ্লেবিট অফলাইন হতে পারে এবং প্রকাশনা ব্যর্থ হতে পারে।",
"newer_than": "নতুন পরে"
"newer_than": "নতুন পরে",
"no_posts": "কোন পোস্ট নেই"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Filtr času",
"subplebbit_offline_info": "Subplebbit může být offline a zveřejnění může selhat.",
"posts_last_synced_info": "Poslední synchronizace příspěvků {{time}}, subplebbit může být offline a zveřejňování může selhat.",
"newer_than": "novější než"
"newer_than": "novější než",
"no_posts": "žádné příspěvky"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Tidsfilter",
"subplebbit_offline_info": "Subplebbiten kan være offline, og offentliggørelse kan mislykkes.",
"posts_last_synced_info": "Seneste synkroniserede indlæg {{time}}, subplebbiten kan være offline, og offentliggørelse kan mislykkes.",
"newer_than": "nyere end"
"newer_than": "nyere end",
"no_posts": "ingen indlæg"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Zeitfilter",
"subplebbit_offline_info": "Der Subplebbit könnte offline sein und das Veröffentlichen könnte fehlschlagen.",
"posts_last_synced_info": "Beiträge zuletzt synchronisiert {{time}}, der Subplebbit könnte offline sein und das Veröffentlichen könnte fehlschlagen.",
"newer_than": "neuer als"
"newer_than": "neuer als",
"no_posts": "keine Beiträge"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Φίλτρο χρόνου",
"subplebbit_offline_info": "Το subplebbit ενδέχεται να είναι εκτός σύνδεσης και η δημοσίευση μπορεί να αποτύχει.",
"posts_last_synced_info": "Τελευταία συγχρονισμένες αναρτήσεις {{time}}, το subplebbit ενδέχεται να είναι εκτός σύνδεσης και η δημοσίευση μπορεί να αποτύχει.",
"newer_than": "πιο πρόσφατο από"
"newer_than": "πιο πρόσφατο από",
"no_posts": "κανένα άρθρο"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Time Filter",
"subplebbit_offline_info": "The subplebbit might be offline and publishing might fail.",
"posts_last_synced_info": "Posts last synced {{time}}, the subplebbit might be offline and publishing might fail.",
"newer_than": "newer than"
"newer_than": "newer than",
"no_posts": "no posts"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Filtro de tiempo",
"subplebbit_offline_info": "El subplebbit podría estar fuera de línea y la publicación podría fallar.",
"posts_last_synced_info": "Últimas publicaciones sincronizadas {{time}}, el subplebbit podría estar fuera de línea y la publicación podría fallar.",
"newer_than": "más reciente que"
"newer_than": "más reciente que",
"no_posts": "sin publicaciones"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "فیلتر زمانی",
"subplebbit_offline_info": "زیرپلبیت ممکن است آفلاین باشد و انتشار ممکن است شکست خورده باشد.",
"posts_last_synced_info": "آخرین پست‌ها همگام‌سازی شده‌اند {{time}}، زیرپلبیت ممکن است آفلاین باشد و انتشار ممکن است شکست خورده باشد.",
"newer_than": "جدیدتر از"
"newer_than": "جدیدتر از",
"no_posts": "بدون پست"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Aikasuodatin",
"subplebbit_offline_info": "Subplebbit voi olla offline-tilassa, ja julkaisu voi epäonnistua.",
"posts_last_synced_info": "Viimeksi synkronoidut viestit {{time}}, subplebbit voi olla offline-tilassa, ja julkaisu voi epäonnistua.",
"newer_than": "uudempi kuin"
"newer_than": "uudempi kuin",
"no_posts": "ei viestejä"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Time Filter",
"subplebbit_offline_info": "Maaaring offline ang subplebbit at maaaring mabigo ang paglalathala.",
"posts_last_synced_info": "Huling naka-sync na mga post {{time}}, maaaring offline ang subplebbit at maaaring mabigo ang paglalathala.",
"newer_than": "mas bago kaysa"
"newer_than": "mas bago kaysa",
"no_posts": "walang post"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Filtre temporel",
"subplebbit_offline_info": "Le subplebbit pourrait être hors ligne et la publication pourrait échouer.",
"posts_last_synced_info": "Dernières publications synchronisées {{time}}, le subplebbit pourrait être hors ligne et la publication pourrait échouer.",
"newer_than": "plus récent que"
"newer_than": "plus récent que",
"no_posts": "pas de publications"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "סינון זמן",
"subplebbit_offline_info": "הסאבפלביט עשוי להיות לא מקוון והפרסום עשוי להכשל.",
"posts_last_synced_info": "הפוסטים סונכרנו לאחרונה {{time}}, הסאבפלביט עשוי להיות לא מקוון והפרסום עשוי להכשל.",
"newer_than": "חדש יותר מ"
"newer_than": "חדש יותר מ",
"no_posts": "אין פוסטים"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "समय फ़िल्टर",
"subplebbit_offline_info": "सबप्लेबिट ऑफलाइन हो सकता है और प्रकाशन विफल हो सकता है।",
"posts_last_synced_info": "आखिरी बार सिंक की गई पोस्ट {{time}}, सबप्लेबिट ऑफलाइन हो सकता है और प्रकाशन विफल हो सकता है।",
"newer_than": "से नई"
"newer_than": "से नई",
"no_posts": "कोई पोस्ट नहीं"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Idő szűrő",
"subplebbit_offline_info": "A subplebbit offline lehet, és a közzététel sikertelen lehet.",
"posts_last_synced_info": "Legutóbb szinkronizált bejegyzések {{time}}, a subplebbit offline lehet, és a közzététel sikertelen lehet.",
"newer_than": "újabb, mint"
"newer_than": "újabb, mint",
"no_posts": "nincsenek hozzászólások"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Filter Waktu",
"subplebbit_offline_info": "Subplebbit mungkin offline dan penerbitan mungkin gagal.",
"posts_last_synced_info": "Posting terakhir disinkronkan {{time}}, subplebbit mungkin offline dan penerbitan mungkin gagal.",
"newer_than": "baru daripada"
"newer_than": "baru daripada",
"no_posts": "tidak ada posting"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Filtro temporale",
"subplebbit_offline_info": "Il subplebbit potrebbe essere offline e la pubblicazione potrebbe fallire.",
"posts_last_synced_info": "Ultimi post sincronizzati {{time}}, il subplebbit potrebbe essere offline e la pubblicazione potrebbe fallire.",
"newer_than": "più recente di"
"newer_than": "più recente di",
"no_posts": "nessun post"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "時間フィルター",
"subplebbit_offline_info": "サブプレビットがオフラインになっている可能性があり、公開が失敗することがあります。",
"posts_last_synced_info": "最後に同期された投稿 {{time}}, サブプレビットがオフラインになっている可能性があり、公開が失敗することがあります。",
"newer_than": "より新しい"
"newer_than": "より新しい",
"no_posts": "投稿はありません"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "시간 필터",
"subplebbit_offline_info": "서브플레빗이 오프라인 일 수 있으며 게시가 실패할 수 있습니다.",
"posts_last_synced_info": "최근 동기화된 게시물 {{time}}, 서브플레빗이 오프라인 일 수 있으며 게시가 실패할 수 있습니다.",
"newer_than": "이전보다 최신"
"newer_than": "이전보다 최신",
"no_posts": "게시물이 없습니다"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "वेळ फिल्टर",
"subplebbit_offline_info": "सबप्लेबिट मोबाइल असून प्रकाशन अयशस्वी होऊ शकतो.",
"posts_last_synced_info": "शेवटच्या बारीस सिन्क केलेले पोस्ट {{time}}, सबप्लेबिट मोबाइल असून प्रकाशन अयशस्वी होऊ शकतो.",
"newer_than": "नवीनतम आहे"
"newer_than": "नवीनतम आहे",
"no_posts": "कोणतेही पोस्ट नाहीत"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Tijdsfilter",
"subplebbit_offline_info": "De subplebbit kan offline zijn en publiceren kan mislukken.",
"posts_last_synced_info": "Laatste keer gesynchroniseerde berichten {{time}}, de subplebbit kan offline zijn en publiceren kan mislukken.",
"newer_than": "nieuwer dan"
"newer_than": "nieuwer dan",
"no_posts": "geen berichten"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Tidsfilter",
"subplebbit_offline_info": "Subplebbiten kan være offline, og publisering kan mislykkes.",
"posts_last_synced_info": "Siste synkroniserte innlegg {{time}}, subplebbiten kan være offline, og publisering kan mislykkes.",
"newer_than": "nyere enn"
"newer_than": "nyere enn",
"no_posts": "ingen innlegg"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Filtr czasu",
"subplebbit_offline_info": "Subplebbit może być offline, a publikacja może się nie powieść.",
"posts_last_synced_info": "Ostatnio zsynchronizowane posty {{time}}, subplebbit może być offline, a publikacja może się nie powieść.",
"newer_than": "nowsze niż"
"newer_than": "nowsze niż",
"no_posts": "brak postów"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Filtro de tempo",
"subplebbit_offline_info": "O subplebbit pode estar offline e a publicação pode falhar.",
"posts_last_synced_info": "Posts sincronizados pela última vez {{time}}, o subplebbit pode estar offline e a publicação pode falhar.",
"newer_than": "mais recente que"
"newer_than": "mais recente que",
"no_posts": "sem publicações"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Filtru de timp",
"subplebbit_offline_info": "Subplebbitul ar putea fi offline și publicarea ar putea eșua.",
"posts_last_synced_info": "Ultimele postări sincronizate {{time}}, subplebbitul ar putea fi offline și publicarea ar putea eșua.",
"newer_than": "mai nou decât"
"newer_than": "mai nou decât",
"no_posts": "niciun post"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Фильтр времени",
"subplebbit_offline_info": "Сабплеббит может быть офлайн, и публикация может не удалиться.",
"posts_last_synced_info": "Последние синхронизированные сообщения {{time}}, сабплеббит может быть офлайн, и публикация может не удалиться.",
"newer_than": "новее чем"
"newer_than": "новее чем",
"no_posts": "нет записей"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Filtri i kohës",
"subplebbit_offline_info": "Subplebbiti mund të jetë jashtë linje dhe publikimi mund të dështojë.",
"posts_last_synced_info": "Postimet e fundit të sinkronizuara {{time}}, subplebbiti mund të jetë jashtë linje dhe publikimi mund të dështojë.",
"newer_than": "më i ri se"
"newer_than": "më i ri se",
"no_posts": "asnjë postim"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Tidsfilter",
"subplebbit_offline_info": "Subplebbit kan vara offline och publicering kan misslyckas.",
"posts_last_synced_info": "Inlägg senast synkroniserade {{time}}, subplebbit kan vara offline och publicering kan misslyckas.",
"newer_than": "nyare än"
"newer_than": "nyare än",
"no_posts": "inga inlägg"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "సమయ ఫిల్టర్",
"subplebbit_offline_info": "సబ్ప్లెబిట్ ఆఫ్‌లైన్ ఉండవచ్చు మరియు ప్రచురణ విఫలమైనా ఉంటుంది.",
"posts_last_synced_info": "ఇటీవలే సింక్ చేసిన పోస్ట్లు {{time}}, సబ్‌ప్లెబిట్ ఆఫ్‌లైన్ ఉండవచ్చు, మరియు ప్రకటన విఫలమవుతుంది.",
"newer_than": "కనునుగా"
"newer_than": "కనునుగా",
"no_posts": "పోస్టులు లేవు"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "ตัวกรองเวลา",
"subplebbit_offline_info": "เซ็บเพล็บบิทอาจออฟไลน์และการเผยแพร่อาจล้มเหลว",
"posts_last_synced_info": "โพสต์ล่าสุดที่ซิงค์ {{time}}, ซับเพลบบิทอาจออฟไลน์และการเผยแพร่อาจล้มเหลว",
"newer_than": "ใหม่กว่า"
"newer_than": "ใหม่กว่า",
"no_posts": "ไม่มีโพสต์"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Zaman Filtresi",
"subplebbit_offline_info": "Subplebbit çevrimdışı olabilir ve yayınlama başarısız olabilir.",
"posts_last_synced_info": "Son senkronize edilen gönderiler {{time}}, subplebbit çevrimdışı olabilir ve yayınlama başarısız olabilir.",
"newer_than": "daha yeni"
"newer_than": "daha yeni",
"no_posts": "gönderi yok"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Фільтр за часом",
"subplebbit_offline_info": "Сабплебіт може бути офлайн, а публікація може не вдастися.",
"posts_last_synced_info": "Останні синхронізовані повідомлення {{time}}, сабплебіт може бути офлайн, а публікація може не вдастися.",
"newer_than": "новіше ніж"
"newer_than": "новіше ніж",
"no_posts": "немає повідомлень"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "وقت فلٹر",
"subplebbit_offline_info": "سب پلیبٹ آف لائن ہوسکتا ہے اور شائع ہونے میں ناکام ہوسکتا ہے۔",
"posts_last_synced_info": "آخری بار پوسٹ سنک کی گئی {{time}}, سب پلیبٹ آف لائن ہوسکتا ہے اور شائع ہونے میں ناکام ہوسکتا ہے۔",
"newer_than": "نئی سے"
"newer_than": "نئی سے",
"no_posts": "کوئی پوسٹ نہیں"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "Bộ lọc thời gian",
"subplebbit_offline_info": "Subplebbit có thể ngoại tuyến và việc xuất bản có thể thất bại.",
"posts_last_synced_info": "Bài viết được đồng bộ lần cuối {{time}}, subplebbit có thể ngoại tuyến và việc xuất bản có thể thất bại.",
"newer_than": "mới hơn"
"newer_than": "mới hơn",
"no_posts": "không có bài viết"
}
+2 -1
View File
@@ -166,5 +166,6 @@
"time_filter": "时间过滤器",
"subplebbit_offline_info": "子维基可能离线,发布可能失败。",
"posts_last_synced_info": "最后同步的帖子 {{time}}, 子维基可能离线,发布可能失败。",
"newer_than": "新于"
"newer_than": "新于",
"no_posts": "没有帖子"
}
@@ -81,7 +81,7 @@ export const TimeFilter = ({ isInAllView, isInCatalogView, isInSubscriptionsView
const params = useParams();
const navigate = useNavigate();
const { timeFilterNames } = useTimeFilter();
const selectedTimeFilterName = params.timeFilterName;
const selectedTimeFilterName = params.timeFilterName || '24h';
const changeTimeFilter = (event: React.ChangeEvent<HTMLSelectElement>) => {
const timeFilterName = event.target.value;
@@ -226,7 +226,7 @@ export const DesktopBoardButtons = () => {
)}
{(isInAllView || isInSubscriptionsView) && (
<>
<TimeFilter isInAllView={isInAllView} isInCatalogView={false} isInSubscriptionsView={isInSubscriptionsView} />
<TimeFilter isInAllView={isInAllView} isInCatalogView={isInCatalogView} isInSubscriptionsView={isInSubscriptionsView} />
</>
)}
</span>
+2 -1
View File
@@ -20,7 +20,8 @@ export const isCatalogView = (pathname: string, params: ParamsType): boolean =>
const decodedPathname = decodeURIComponent(pathname);
return (
decodedPathname === `/p/${subplebbitAddress}/catalog` ||
decodedPathname === `/p/${subplebbitAddress}/catalog/settings` ||
decodedPathname === `/p/all/catalog/settings` ||
decodedPathname === `/p/all/catalog` ||
decodedPathname === `/p/all/catalog/${timeFilterName}` ||
decodedPathname === `/p/subscriptions/catalog` ||
+1 -1
View File
@@ -110,7 +110,7 @@ const Catalog = () => {
const feedOptions: any = {
subplebbitAddresses,
sortType,
postsPerPage: isInAllView || isInSubscriptionsView ? 10 : 25,
postsPerPage: isInAllView || isInSubscriptionsView ? 10 : postsPerPage,
};
if (isInAllView || isInSubscriptionsView) {