@@ -14,7 +14,7 @@ import {
|
|||||||
|
|
||||||
import type { RouterOutputs } from "@homarr/api";
|
import type { RouterOutputs } from "@homarr/api";
|
||||||
import { api } from "@homarr/api/server";
|
import { api } from "@homarr/api/server";
|
||||||
import { getScopedI18n } from "@homarr/translation/server";
|
import { getI18n, getScopedI18n } from "@homarr/translation/server";
|
||||||
import { SearchInput, UserAvatar } from "@homarr/ui";
|
import { SearchInput, UserAvatar } from "@homarr/ui";
|
||||||
|
|
||||||
import { AddGroupMember } from "./_add-group-member";
|
import { AddGroupMember } from "./_add-group-member";
|
||||||
@@ -33,6 +33,7 @@ export default async function GroupsDetailPage({
|
|||||||
params,
|
params,
|
||||||
searchParams,
|
searchParams,
|
||||||
}: GroupsDetailPageProps) {
|
}: GroupsDetailPageProps) {
|
||||||
|
const t = await getI18n();
|
||||||
const tMembers = await getScopedI18n("management.page.group.setting.members");
|
const tMembers = await getScopedI18n("management.page.group.setting.members");
|
||||||
const group = await api.group.getById({ id: params.id });
|
const group = await api.group.getById({ id: params.id });
|
||||||
|
|
||||||
@@ -49,7 +50,10 @@ export default async function GroupsDetailPage({
|
|||||||
<Title>{tMembers("title")}</Title>
|
<Title>{tMembers("title")}</Title>
|
||||||
<Group justify="space-between">
|
<Group justify="space-between">
|
||||||
<SearchInput
|
<SearchInput
|
||||||
placeholder={`${tMembers("search")}...`}
|
placeholder={t("common.rtl", {
|
||||||
|
value: tMembers("search"),
|
||||||
|
symbol: "...",
|
||||||
|
})}
|
||||||
defaultValue={searchParams.search}
|
defaultValue={searchParams.search}
|
||||||
/>
|
/>
|
||||||
<AddGroupMember
|
<AddGroupMember
|
||||||
|
|||||||
@@ -53,7 +53,10 @@ export default async function GroupsListPage(props: GroupsListPageProps) {
|
|||||||
<Title>{t("group.title")}</Title>
|
<Title>{t("group.title")}</Title>
|
||||||
<Group justify="space-between">
|
<Group justify="space-between">
|
||||||
<SearchInput
|
<SearchInput
|
||||||
placeholder={`${t("group.search")}...`}
|
placeholder={t("common.rtl", {
|
||||||
|
value: t("group.search"),
|
||||||
|
symbol: "...",
|
||||||
|
})}
|
||||||
defaultValue={searchParams.search}
|
defaultValue={searchParams.search}
|
||||||
/>
|
/>
|
||||||
<AddGroup />
|
<AddGroup />
|
||||||
|
|||||||
@@ -100,7 +100,10 @@ export const Spotlight = () => {
|
|||||||
store={spotlightStore}
|
store={spotlightStore}
|
||||||
>
|
>
|
||||||
<MantineSpotlight.Search
|
<MantineSpotlight.Search
|
||||||
placeholder={t("common.search.placeholder")}
|
placeholder={t("common.rtl", {
|
||||||
|
value: t("common.search.placeholder"),
|
||||||
|
symbol: "...",
|
||||||
|
})}
|
||||||
leftSection={<IconSearch stroke={1.5} />}
|
leftSection={<IconSearch stroke={1.5} />}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
common: {
|
common: {
|
||||||
|
rtl: "{value}{symbol}",
|
||||||
action: {
|
action: {
|
||||||
backToOverview: "Zurück zur Übersicht",
|
backToOverview: "Zurück zur Übersicht",
|
||||||
create: "Erstellen",
|
create: "Erstellen",
|
||||||
@@ -157,7 +158,7 @@ export default {
|
|||||||
},
|
},
|
||||||
noResults: "Keine Ergebnisse gefunden",
|
noResults: "Keine Ergebnisse gefunden",
|
||||||
search: {
|
search: {
|
||||||
placeholder: "Suche nach etwas...",
|
placeholder: "Suche nach etwas",
|
||||||
nothingFound: "Nichts gefunden",
|
nothingFound: "Nichts gefunden",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -337,6 +337,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
common: {
|
common: {
|
||||||
|
rtl: "{value}{symbol}",
|
||||||
action: {
|
action: {
|
||||||
add: "Add",
|
add: "Add",
|
||||||
apply: "Apply",
|
apply: "Apply",
|
||||||
@@ -383,7 +384,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
search: {
|
search: {
|
||||||
placeholder: "Search for anything...",
|
placeholder: "Search for anything",
|
||||||
nothingFound: "Nothing found",
|
nothingFound: "Nothing found",
|
||||||
group: {
|
group: {
|
||||||
all: "All",
|
all: "All",
|
||||||
|
|||||||
Reference in New Issue
Block a user