Fix: localize the PWA install prompt

The PWA install prompt was hardcoded English regardless of the selected UI
language (and the large English block tripped Chrome's translate popup on
Android). Add a pwa_install namespace to all 17 locales, switch the component
to useTranslations, and move <PWAInstallPrompt /> from (main)/layout into
(main)/[locale]/layout so it renders inside the IntlProvider. The title keeps
the dynamic {appName}, so per-domain branding still applies.
This commit is contained in:
dealerweb
2026-05-30 15:35:05 +02:00
committed by Linus Rath
parent f0d87d594a
commit 229992853b
20 changed files with 146 additions and 8 deletions
+8
View File
@@ -1,4 +1,12 @@
{
"pwa_install": {
"title": "Встановити {appName}",
"description": "Встановіть наш застосунок для швидкого доступу та офлайн-підтримки.",
"not_now": "Не зараз",
"install": "Встановити",
"dont_remind": "Більше не нагадувати",
"dismiss_aria": "Закрити запит на встановлення"
},
"login": {
"title": "Веб-пошта",
"username_label": "Електронна пошта",