From 59d4f3e6a114e00ba06aa34ac882dacf8d6992af Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Sat, 14 Feb 2026 21:08:28 +0300 Subject: [PATCH] fix: preserve query params in i18n URL, make seed phrase copyable in bot --- package.json | 2 +- src/i18n/index.tsx | 6 +++--- src/version.json | 6 +++--- supabase/functions/telegram-bot/index.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 4972484..1f8c616 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pezkuwi-telegram-miniapp", - "version": "1.0.192", + "version": "1.0.193", "type": "module", "description": "Pezkuwichain Telegram Mini App - Forum, Announcements, Rewards", "author": "Pezkuwichain Team", diff --git a/src/i18n/index.tsx b/src/i18n/index.tsx index d79dfff..b6018e8 100644 --- a/src/i18n/index.tsx +++ b/src/i18n/index.tsx @@ -139,10 +139,10 @@ export function LanguageProvider({ children }: LanguageProviderProps) { document.documentElement.lang = lang === 'krd' ? 'ku' : lang; document.documentElement.dir = isRTL ? 'rtl' : 'ltr'; - // Ensure URL has language prefix + // Ensure URL has language prefix (preserve query params like ?page=citizen) const firstSegment = window.location.pathname.split('/').filter(Boolean)[0]; if (!firstSegment || !VALID_LANGS.includes(firstSegment as LanguageCode)) { - window.history.replaceState(null, '', `/${lang}`); + window.history.replaceState(null, '', `/${lang}${window.location.search}`); } }, [lang, isRTL]); @@ -156,7 +156,7 @@ export function LanguageProvider({ children }: LanguageProviderProps) { segments.shift(); } const newPath = `/${newLang}${segments.length > 0 ? '/' + segments.join('/') : ''}`; - window.history.replaceState(null, '', newPath); + window.history.replaceState(null, '', `${newPath}${window.location.search}`); }, []); const t = useCallback( diff --git a/src/version.json b/src/version.json index 79440bc..350e6f6 100644 --- a/src/version.json +++ b/src/version.json @@ -1,5 +1,5 @@ { - "version": "1.0.192", - "buildTime": "2026-02-14T17:44:17.743Z", - "buildNumber": 1771091057743 + "version": "1.0.193", + "buildTime": "2026-02-14T18:08:28.138Z", + "buildNumber": 1771092508139 } diff --git a/supabase/functions/telegram-bot/index.ts b/supabase/functions/telegram-bot/index.ts index 1b7e454..22520da 100644 --- a/supabase/functions/telegram-bot/index.ts +++ b/supabase/functions/telegram-bot/index.ts @@ -218,7 +218,7 @@ async function handleCreateWallet(token: string, chatId: number) { ${address} 🔑 Seed Phrase (12 words): -${mnemonic} +${mnemonic} ⚠️ GIRÎNG / IMPORTANT: Ev 12 peyvan binivîsin û li cihekî ewle bihêlin.