mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
💬 Add missing i18n string (#969)
This commit is contained in:
parent
7ffbc960b0
commit
125ced46e9
2 changed files with 7 additions and 2 deletions
|
@ -102,6 +102,7 @@
|
||||||
"timeZoneSelect__defaultValue": "Select time zone…",
|
"timeZoneSelect__defaultValue": "Select time zone…",
|
||||||
"timeZoneSelect__noOption": "No option found",
|
"timeZoneSelect__noOption": "No option found",
|
||||||
"timeZoneSelect__inputPlaceholder": "Search…",
|
"timeZoneSelect__inputPlaceholder": "Search…",
|
||||||
|
"timeZonePicker__ignore": "Ignore time zone",
|
||||||
"poweredByRallly": "Powered by <a>{name}</a>",
|
"poweredByRallly": "Powered by <a>{name}</a>",
|
||||||
"participants": "Participants",
|
"participants": "Participants",
|
||||||
"language": "Language",
|
"language": "Language",
|
||||||
|
|
|
@ -8,6 +8,7 @@ import {
|
||||||
import { Combobox } from "@headlessui/react";
|
import { Combobox } from "@headlessui/react";
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
import { ChevronDownIcon } from "lucide-react";
|
import { ChevronDownIcon } from "lucide-react";
|
||||||
|
import { useTranslation } from "next-i18next";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import spacetime from "spacetime";
|
import spacetime from "spacetime";
|
||||||
import soft from "timezone-soft";
|
import soft from "timezone-soft";
|
||||||
|
@ -124,6 +125,7 @@ const TimeZonePicker: React.FunctionComponent<{
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
}> = ({ value, onChange, onBlur, className, style, disabled }) => {
|
}> = ({ value, onChange, onBlur, className, style, disabled }) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
const { options, findFuzzyTz } = useTimeZones();
|
const { options, findFuzzyTz } = useTimeZones();
|
||||||
|
|
||||||
const { reference, floating, x, y, strategy, refs } = useFloating({
|
const { reference, floating, x, y, strategy, refs } = useFloating({
|
||||||
|
@ -147,12 +149,14 @@ const TimeZonePicker: React.FunctionComponent<{
|
||||||
() => [
|
() => [
|
||||||
{
|
{
|
||||||
value: "",
|
value: "",
|
||||||
label: "Ignore time zone",
|
label: t("timeZonePicker__ignore", {
|
||||||
|
defaultValue: "Ignore time zone",
|
||||||
|
}),
|
||||||
offset: 0,
|
offset: 0,
|
||||||
},
|
},
|
||||||
...options,
|
...options,
|
||||||
],
|
],
|
||||||
[options],
|
[options, t],
|
||||||
);
|
);
|
||||||
|
|
||||||
const selectedTimeZone = React.useMemo(
|
const selectedTimeZone = React.useMemo(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue