diff --git a/src/components/route-board/SwipeableRoutesBoard.tsx b/src/components/route-board/SwipeableRoutesBoard.tsx index 1f60dfa4b07f..438e5dc85d38 100644 --- a/src/components/route-board/SwipeableRoutesBoard.tsx +++ b/src/components/route-board/SwipeableRoutesBoard.tsx @@ -9,7 +9,7 @@ import SentimentVeryDissatisfiedIcon from "@mui/icons-material/SentimentVeryDiss import { FixedSizeList } from "react-window"; import AutoSizer from "react-virtualized-auto-sizer"; import memorize from "memoize-one"; -import { useTranslation } from "react-i18next"; +import { Trans, useTranslation } from "react-i18next"; import { Box, SxProps, Theme, Typography } from "@mui/material"; import AppContext from "../../context/AppContext"; @@ -154,15 +154,19 @@ const SwipeableRoutesBoard = ({ {availableBoardTab[index] !== "all" && ( - onChangeTab("all")} - > - {t("click-here")} - - {t("to-search-all-routes")} + onChangeTab("all")} + /> + ), + }} + /> )} diff --git a/src/i18n/translation.js b/src/i18n/translation.js index fa1057e2731f..2f70e052c11e 100644 --- a/src/i18n/translation.js +++ b/src/i18n/translation.js @@ -4,7 +4,7 @@ const resources = { "bad-weather-text": "Services may be impacted by bad weather. Data displayed below might not be accurate. Check here to see official announcements.", "bad-weather-link": "https://www.td.gov.hk/en/special_news/spnews.htm", - "db-renew-text": "Route info has been revised. Click here to update.", + "db-renew-text": "Route data has not been updated, tap here to update", "巴士到站預報 App (免費無廣告)": "HK Bus ETA App (Free and Ad-free)", 巴士到站預報: "HK BUS ETA", 點對點路線搜尋: "Point to point route search", @@ -134,8 +134,8 @@ const resources = { ferry: "Ferry", "route-search-no-result": "No Result", "no-recent-search": "No Record", - "click-here": "Click here", - "to-search-all-routes": " to search all routes", + "tap-here-to-search-all-routes": + "Tap here to search all routes", 對頭線: "REV", 附近未有任何路線: "No available routes nearby", 未有收藏路線: "No starred routes", @@ -227,8 +227,8 @@ const resources = { "CTB first": "城巴優先", "route-search-no-result": "沒有結果", "no-recent-search": "沒有記錄", - "click-here": "按此", - "to-search-all-routes": "以搜尋「全部」路綫", + "tap-here-to-search-all-routes": + "按此以搜尋「全部」路綫", "Source code": "原始碼", "We'd like to set analytics cookies that help us improve hkbus.app by measuring how you use it.": "我們希望設置 cookie,了解你如何使用 hkbus.app 來幫助我們改進。",