aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes/estimates-$id.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-06-24 16:14:28 +0200
committerAriel Costas Guerrero <ariel@costas.dev>2025-06-24 16:14:28 +0200
commitecb73e1684b42265af3f8d93541600e4d0f9c414 (patch)
tree26e413973b32de0367aa06cfc0df329c67733821 /src/frontend/app/routes/estimates-$id.tsx
parentf65b4e1e0d5648038823962349279be4badc68ed (diff)
Implement i18n
Closes #18
Diffstat (limited to 'src/frontend/app/routes/estimates-$id.tsx')
-rw-r--r--src/frontend/app/routes/estimates-$id.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frontend/app/routes/estimates-$id.tsx b/src/frontend/app/routes/estimates-$id.tsx
index 761a8d4..5dbbc7d 100644
--- a/src/frontend/app/routes/estimates-$id.tsx
+++ b/src/frontend/app/routes/estimates-$id.tsx
@@ -6,6 +6,7 @@ import "./estimates-$id.css";
import { RegularTable } from "../components/RegularTable";
import { useApp } from "../AppContext";
import { GroupedTable } from "../components/GroupedTable";
+import { useTranslation } from "react-i18next";
export interface StopDetails {
stop: {
@@ -32,6 +33,7 @@ const loadData = async (stopId: string) => {
};
export default function Estimates() {
+ const { t } = useTranslation();
const params = useParams();
const stopIdNum = parseInt(params.id ?? "");
const [customName, setCustomName] = useState<string | undefined>(undefined);