Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💬 Add missing i18n string (#969)
Adrià Vilanova Martínez125ced46e96c
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.jsonindex d673ed56a..c0a93c15f 100644--- a/apps/web/public/locales/en/app.json+++ b/apps/web/public/locales/en/app.json@@ -102,6 +102,7 @@"timeZoneSelect__defaultValue": "Select time zone…","timeZoneSelect__noOption": "No option found","timeZoneSelect__inputPlaceholder": "Search…",+ "timeZonePicker__ignore": "Ignore time zone","poweredByRallly": "Powered by <a>{name}</a>","participants": "Participants","language": "Language",diff --git a/apps/web/src/components/time-zone-picker/time-zone-picker.tsx b/apps/web/src/components/time-zone-picker/time-zone-picker.tsxindex ccdac3f75..a2778edbc 100644--- a/apps/web/src/components/time-zone-picker/time-zone-picker.tsx+++ b/apps/web/src/components/time-zone-picker/time-zone-picker.tsx@@ -8,6 +8,7 @@ import {import { Combobox } from "@headlessui/react";import clsx from "clsx";import { ChevronDownIcon } from "lucide-react";+import { useTranslation } from "next-i18next";import React from "react";import spacetime from "spacetime";import soft from "timezone-soft";@@ -124,6 +125,7 @@ const TimeZonePicker: React.FunctionComponent<{style?: React.CSSProperties;disabled?: boolean;}> = ({ value, onChange, onBlur, className, style, disabled }) => {+ const { t } = useTranslation();const { options, findFuzzyTz } = useTimeZones();const { reference, floating, x, y, strategy, refs } = useFloating({@@ -147,12 +149,14 @@ const TimeZonePicker: React.FunctionComponent<{() => [{value: "",- label: "Ignore time zone",+ label: t("timeZonePicker__ignore", {+ defaultValue: "Ignore time zone",+ }),offset: 0,},...options,],- [options],+ [options, t],);const selectedTimeZone = React.useMemo(