mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-31 08:09:02 +03:00
Implement smart capitalization based on locale (#17860)
This commit is contained in:
@@ -185,7 +185,7 @@ export function CameraStreamingDialog({
|
||||
return (
|
||||
<DialogContent className="sm:max-w-[425px]">
|
||||
<DialogHeader className="mb-4">
|
||||
<DialogTitle className="capitalize">
|
||||
<DialogTitle className="smart-capitalize">
|
||||
{t("group.camera.setting.title", {
|
||||
cameraName: camera.replaceAll("_", " "),
|
||||
})}
|
||||
|
||||
@@ -933,7 +933,7 @@ export function ZoneObjectSelector({
|
||||
{allLabels.map((item) => (
|
||||
<div key={item} className="flex items-center justify-between">
|
||||
<Label
|
||||
className="w-full cursor-pointer capitalize text-primary"
|
||||
className="w-full cursor-pointer text-primary smart-capitalize"
|
||||
htmlFor={item}
|
||||
>
|
||||
{t(item, { ns: "objects" })}
|
||||
|
||||
Reference in New Issue
Block a user