mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-28 22:59:02 +03:00
i18n fixes (#17725)
* fix key * add french * Fix random 0 * fix i18n in role change dialog * fix delete user dialog * fix filter tips steps * remove classes from i18n files * combine disjointed norweigan localized files * change submit to plus to use a question with yes/no --------- Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
co-authored by
Nicolas Mowen
parent
1315a28252
commit
84c1ad59a2
@@ -51,7 +51,7 @@ import { toast } from "sonner";
|
||||
import useSWR from "swr";
|
||||
import { FrigateConfig } from "@/types/frigateConfig";
|
||||
import { MdImageSearch } from "react-icons/md";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
type InputWithTagsProps = {
|
||||
inputFocused: boolean;
|
||||
@@ -729,20 +729,31 @@ export default function InputWithTags({
|
||||
<p className="text-sm text-muted-foreground">
|
||||
{t("filter.tips.desc.text")}
|
||||
</p>
|
||||
<Trans
|
||||
ns="views/search"
|
||||
values={{
|
||||
DateFormat: getIntlDateFormat(),
|
||||
exampleTime:
|
||||
config?.ui.time_format == "24hour"
|
||||
? "15:00-16:00"
|
||||
: "3:00PM-4:00PM",
|
||||
}}
|
||||
>
|
||||
filter.tips.desc.step
|
||||
</Trans>
|
||||
<ul className="list-disc pl-5 text-sm text-primary-variant">
|
||||
<li>{t("filter.tips.desc.step1")}</li>
|
||||
<li>{t("filter.tips.desc.step2")}</li>
|
||||
<li>{t("filter.tips.desc.step3")}</li>
|
||||
<li>
|
||||
{t("filter.tips.desc.step4", {
|
||||
DateFormat: getIntlDateFormat(),
|
||||
})}
|
||||
</li>
|
||||
<li>
|
||||
{t("filter.tips.desc.step5", {
|
||||
exampleTime:
|
||||
config?.ui.time_format == "24hour"
|
||||
? "15:00-16:00"
|
||||
: "3:00PM-4:00PM",
|
||||
})}
|
||||
</li>
|
||||
<li>{t("filter.tips.desc.step6")}</li>
|
||||
</ul>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
<Trans ns="views/search">filter.tips.desc.example</Trans>
|
||||
{t("filter.tips.desc.exampleLabel")}{" "}
|
||||
<code className="text-primary">
|
||||
cameras:front_door label:person before:01012024
|
||||
time_range:3:00PM-4:00PM
|
||||
</code>
|
||||
</p>
|
||||
</div>
|
||||
</PopoverContent>
|
||||
|
||||
Reference in New Issue
Block a user