- { - t.rich("payed-total", { - amount: formatCurrency(monthlyExpense), - strong: (chunks:ReactNode) => `${chunks}` - })} + { t("payed-total") } ${monthlyExpense}
: null } diff --git a/app/ui/SelectLanguage.tsx b/app/ui/SelectLanguage.tsx index 623aaa6..478eeba 100644 --- a/app/ui/SelectLanguage.tsx +++ b/app/ui/SelectLanguage.tsx @@ -8,9 +8,9 @@ import { defaultLocale, localeNames, locales } from "../i18n"; export const SelectLanguage: React.FC = () => { const currentPathname = usePathname(); - const locale = useLocale(); - const secondLocale = locales.find((l) => l !== locale) as string; - const secondLocalePathname = defaultLocale === locale ? `/${secondLocale}${currentPathname}` : currentPathname.replace(`/${locale}/`, `/${secondLocale}/`); + const currentLocale = useLocale(); + const secondLocale = locales.find((l) => l !== currentLocale) as string; + const secondLocalePathname = defaultLocale === currentLocale ? `/${secondLocale}${currentPathname}` : currentPathname.replace(`/${currentLocale}`, `/${secondLocale}`); return ({localeNames[secondLocale]}); } \ No newline at end of file diff --git a/docker-compose-deploy.yml b/docker-compose-deploy.yml index 575ba13..5f32496 100644 --- a/docker-compose-deploy.yml +++ b/docker-compose-deploy.yml @@ -9,7 +9,7 @@ networks: services: web-app: - image: utility-bills-tracker:1.25.2 + image: utility-bills-tracker:1.25.3 networks: - traefik-network - mongo-network diff --git a/messages/en.json b/messages/en.json index 08d78b5..14a8549 100644 --- a/messages/en.json +++ b/messages/en.json @@ -53,7 +53,7 @@ "location-card": { "edit-card-tooltip": "Edit realestate", "add-bill-button-tooltip": "Add a new bill", - "payed-total": "Payed total: {amount}" + "payed-total": "Payed total:" }, "month-card": { "payed-total-label": "Total monthly expenditure:"