diff --git a/src/features/flights-map/components/FlightsMapStartPage.tsx b/src/features/flights-map/components/FlightsMapStartPage.tsx index cb32012c..568069aa 100644 --- a/src/features/flights-map/components/FlightsMapStartPage.tsx +++ b/src/features/flights-map/components/FlightsMapStartPage.tsx @@ -355,7 +355,7 @@ export const FlightsMapStartPage: FC = () => { role="alert" data-testid="map-error" > - Failed to load routes. Please try again. + {t("BOARD.LOAD-FAILED")} )} @@ -364,7 +364,7 @@ export const FlightsMapStartPage: FC = () => { className="flights-map-start__empty" data-testid="map-no-directions" > - No directions found. + {t("FLIGHTS-MAP.NO_DIRECTIONS_INFO")} )} diff --git a/src/i18n/locales/de/common.json b/src/i18n/locales/de/common.json index 211af6b3..ffc9c379 100644 --- a/src/i18n/locales/de/common.json +++ b/src/i18n/locales/de/common.json @@ -378,7 +378,8 @@ "CONNECTION-LIVE": "Live", "CONNECTION-RECONNECTING": "Reconnecting…", "CONNECTION-OFFLINE": "Offline", - "INVALID-PARAMS": "Invalid URL parameters." + "INVALID-PARAMS": "Invalid URL parameters.", + "LOADING": "Loading…" }, "WARNING": { "IFLY_HIGHLIGHT": "Bitte beachten Sie:", diff --git a/src/i18n/locales/en/common.json b/src/i18n/locales/en/common.json index b6d87eb8..6b256443 100644 --- a/src/i18n/locales/en/common.json +++ b/src/i18n/locales/en/common.json @@ -405,7 +405,8 @@ "CONNECTION-LIVE": "Live", "CONNECTION-RECONNECTING": "Reconnecting…", "CONNECTION-OFFLINE": "Offline", - "INVALID-PARAMS": "Invalid URL parameters." + "INVALID-PARAMS": "Invalid URL parameters.", + "LOADING": "Loading…" }, "WARNING": { "IFLY_HIGHLIGHT": "Please note:", diff --git a/src/i18n/locales/es/common.json b/src/i18n/locales/es/common.json index 67a3d6da..17c9078d 100644 --- a/src/i18n/locales/es/common.json +++ b/src/i18n/locales/es/common.json @@ -378,7 +378,8 @@ "CONNECTION-LIVE": "Live", "CONNECTION-RECONNECTING": "Reconnecting…", "CONNECTION-OFFLINE": "Offline", - "INVALID-PARAMS": "Invalid URL parameters." + "INVALID-PARAMS": "Invalid URL parameters.", + "LOADING": "Loading…" }, "WARNING": { "IFLY_HIGHLIGHT": "Nota:", diff --git a/src/i18n/locales/fr/common.json b/src/i18n/locales/fr/common.json index 856b5f11..712dd44b 100644 --- a/src/i18n/locales/fr/common.json +++ b/src/i18n/locales/fr/common.json @@ -378,7 +378,8 @@ "CONNECTION-LIVE": "Live", "CONNECTION-RECONNECTING": "Reconnecting…", "CONNECTION-OFFLINE": "Offline", - "INVALID-PARAMS": "Invalid URL parameters." + "INVALID-PARAMS": "Invalid URL parameters.", + "LOADING": "Loading…" }, "WARNING": { "IFLY_HIGHLIGHT": "Remarque:", diff --git a/src/i18n/locales/it/common.json b/src/i18n/locales/it/common.json index 0d822ef0..201a4e3e 100644 --- a/src/i18n/locales/it/common.json +++ b/src/i18n/locales/it/common.json @@ -378,7 +378,8 @@ "CONNECTION-LIVE": "Live", "CONNECTION-RECONNECTING": "Reconnecting…", "CONNECTION-OFFLINE": "Offline", - "INVALID-PARAMS": "Invalid URL parameters." + "INVALID-PARAMS": "Invalid URL parameters.", + "LOADING": "Loading…" }, "WARNING": { "IFLY_HIGHLIGHT": "Attenzione:", diff --git a/src/i18n/locales/ja/common.json b/src/i18n/locales/ja/common.json index 655d4fd6..c7e0e496 100644 --- a/src/i18n/locales/ja/common.json +++ b/src/i18n/locales/ja/common.json @@ -378,7 +378,8 @@ "CONNECTION-LIVE": "Live", "CONNECTION-RECONNECTING": "Reconnecting…", "CONNECTION-OFFLINE": "Offline", - "INVALID-PARAMS": "Invalid URL parameters." + "INVALID-PARAMS": "Invalid URL parameters.", + "LOADING": "Loading…" }, "WARNING": { "IFLY_HIGHLIGHT": "ご注意:", diff --git a/src/i18n/locales/ko/common.json b/src/i18n/locales/ko/common.json index 28f87077..d34eb136 100644 --- a/src/i18n/locales/ko/common.json +++ b/src/i18n/locales/ko/common.json @@ -378,7 +378,8 @@ "CONNECTION-LIVE": "Live", "CONNECTION-RECONNECTING": "Reconnecting…", "CONNECTION-OFFLINE": "Offline", - "INVALID-PARAMS": "Invalid URL parameters." + "INVALID-PARAMS": "Invalid URL parameters.", + "LOADING": "Loading…" }, "WARNING": { "IFLY_HIGHLIGHT": "참고:", diff --git a/src/i18n/locales/ru/common.json b/src/i18n/locales/ru/common.json index fcab927d..b5968617 100644 --- a/src/i18n/locales/ru/common.json +++ b/src/i18n/locales/ru/common.json @@ -405,7 +405,8 @@ "CONNECTION-LIVE": "Онлайн", "CONNECTION-RECONNECTING": "Соединение…", "CONNECTION-OFFLINE": "Нет связи", - "INVALID-PARAMS": "Неверные параметры URL." + "INVALID-PARAMS": "Неверные параметры URL.", + "LOADING": "Загрузка…" }, "SMOKE": { "HEADING": "Страница проверки" diff --git a/src/i18n/locales/zh/common.json b/src/i18n/locales/zh/common.json index b6080820..1516e332 100644 --- a/src/i18n/locales/zh/common.json +++ b/src/i18n/locales/zh/common.json @@ -378,7 +378,8 @@ "CONNECTION-LIVE": "Live", "CONNECTION-RECONNECTING": "Reconnecting…", "CONNECTION-OFFLINE": "Offline", - "INVALID-PARAMS": "Invalid URL parameters." + "INVALID-PARAMS": "Invalid URL parameters.", + "LOADING": "Loading…" }, "WARNING": { "IFLY_HIGHLIGHT": "请注意:", diff --git a/src/routes/[lang]/flights-map/page.tsx b/src/routes/[lang]/flights-map/page.tsx index 6b8f1e6c..707bf8d5 100644 --- a/src/routes/[lang]/flights-map/page.tsx +++ b/src/routes/[lang]/flights-map/page.tsx @@ -32,8 +32,7 @@ export default function FlightsMapPage(): JSX.Element { if (!isEnabled) { return (
-

404 - Page Not Found

-

This feature is currently unavailable.

+

404 — {t("PAGE404.HEADER")}

); } @@ -44,7 +43,7 @@ export default function FlightsMapPage(): JSX.Element { return ( <> - Loading...}> + {t("SHARED.LOADING")}}> diff --git a/src/routes/[lang]/onlineboard/page.tsx b/src/routes/[lang]/onlineboard/page.tsx index da5ee194..486f1651 100644 --- a/src/routes/[lang]/onlineboard/page.tsx +++ b/src/routes/[lang]/onlineboard/page.tsx @@ -29,7 +29,7 @@ export default function OnlineBoardPage(): JSX.Element { return ( <> - Loading...}> + {t("SHARED.LOADING")}}> diff --git a/src/routes/[lang]/popular/page.tsx b/src/routes/[lang]/popular/page.tsx index 1b8e3ad6..277e265e 100644 --- a/src/routes/[lang]/popular/page.tsx +++ b/src/routes/[lang]/popular/page.tsx @@ -11,6 +11,7 @@ import { lazy, Suspense, useCallback } from "react"; import { useParams, useNavigate } from "@modern-js/runtime/router"; +import { useTranslation } from "@/i18n/provider.js"; import type { PopularRequest } from "@/features/popular-requests/types.js"; const PopularRequestsPanel = lazy(() => @@ -20,6 +21,7 @@ const PopularRequestsPanel = lazy(() => ); export default function PopularPage(): JSX.Element { + const { t } = useTranslation(); const routeParams = useParams<{ lang: string }>(); const lang = routeParams.lang ?? "ru"; const navigate = useNavigate(); @@ -48,7 +50,7 @@ export default function PopularPage(): JSX.Element { ); return ( - Loading...}> + {t("SHARED.LOADING")}}> ); diff --git a/src/routes/[lang]/schedule/page.tsx b/src/routes/[lang]/schedule/page.tsx index ebb57e7e..f4466052 100644 --- a/src/routes/[lang]/schedule/page.tsx +++ b/src/routes/[lang]/schedule/page.tsx @@ -29,7 +29,7 @@ export default function SchedulePage(): JSX.Element { return ( <> - Loading...}> + {t("SHARED.LOADING")}}>