@@ -209,7 +209,7 @@ export function UserDataTableAttributeSearchForm({
{
if (e.key === "Enter") {
@@ -238,7 +238,7 @@ export function UserDataTableAttributeSearchForm({
isDisabled={!activeFilters.length}
onClick={searchUserWithAttributes}
>
- {t("common:search")}
+ {t("search")}
diff --git a/js/apps/admin-ui/src/components/users/UserSelect.tsx b/js/apps/admin-ui/src/components/users/UserSelect.tsx
index ea48c26fda16..63154fae16e4 100644
--- a/js/apps/admin-ui/src/components/users/UserSelect.tsx
+++ b/js/apps/admin-ui/src/components/users/UserSelect.tsx
@@ -86,7 +86,7 @@ export const UserSelect = ({
}
fieldId={name!}
validated={errors[name!] ? "error" : "default"}
- helperTextInvalid={t("common:required")}
+ helperTextInvalid={t("required")}
>
{
onToggle(value);
}}
@@ -152,7 +152,7 @@ export const ViewHeader = ({
id={actionsDropdownId}
onToggle={onDropdownToggle}
>
- {t("common:action")}
+ {t("action")}
}
isOpen={isDropdownOpen}
@@ -175,7 +175,7 @@ export const ViewHeader = ({
: ""}
{helpUrl && (
{
<>
- {t("realmName", { name: realm })}
+ {t("realmNameTitle", { name: realm })}
@@ -209,8 +209,8 @@ const Dashboard = () => {
{t("enabledFeatures")}{" "}
@@ -228,8 +228,8 @@ const Dashboard = () => {
{t("disabledFeatures")}{" "}
diff --git a/js/apps/admin-ui/src/dashboard/ProviderInfo.tsx b/js/apps/admin-ui/src/dashboard/ProviderInfo.tsx
index 39968a8a56da..e5f5797d2e3c 100644
--- a/js/apps/admin-ui/src/dashboard/ProviderInfo.tsx
+++ b/js/apps/admin-ui/src/dashboard/ProviderInfo.tsx
@@ -39,7 +39,7 @@ export const ProviderInfo = () => {
diff --git a/js/apps/admin-ui/src/dashboard/routes/Dashboard.tsx b/js/apps/admin-ui/src/dashboard/routes/Dashboard.tsx
index 5c9cfe7dd538..be097d0b0061 100644
--- a/js/apps/admin-ui/src/dashboard/routes/Dashboard.tsx
+++ b/js/apps/admin-ui/src/dashboard/routes/Dashboard.tsx
@@ -12,7 +12,7 @@ const Dashboard = lazy(() => import("../Dashboard"));
export const DashboardRoute: AppRouteObject = {
path: "/",
element: ,
- breadcrumb: (t) => t("common:home"),
+ breadcrumb: (t) => t("home"),
handle: {
access: "anyone",
},
diff --git a/js/apps/admin-ui/src/events/AdminEvents.tsx b/js/apps/admin-ui/src/events/AdminEvents.tsx
index 1d43ff9508a3..248e60adf45f 100644
--- a/js/apps/admin-ui/src/events/AdminEvents.tsx
+++ b/js/apps/admin-ui/src/events/AdminEvents.tsx
@@ -234,8 +234,8 @@ export const AdminEvents = () => {
data-testid="resource-types-searchField"
chipGroupProps={{
numChips: 1,
- expandedText: t("common:hide"),
- collapsedText: t("common:showRemaining"),
+ expandedText: t("hide"),
+ collapsedText: t("showRemaining"),
}}
variant={SelectVariant.typeaheadMulti}
typeAheadAriaLabel="Select"
@@ -295,8 +295,8 @@ export const AdminEvents = () => {
data-testid="operation-types-searchField"
chipGroupProps={{
numChips: 1,
- expandedText: t("common:hide"),
- collapsedText: t("common:showRemaining"),
+ expandedText: t("hide"),
+ collapsedText: t("showRemaining"),
}}
variant={SelectVariant.typeaheadMulti}
typeAheadAriaLabel="Select"
@@ -548,7 +548,7 @@ export const AdminEvents = () => {
key={key}
loader={loader}
isPaginated
- ariaLabelKey="events:adminEvents"
+ ariaLabelKey="adminEvents"
toolbarItem={adminEventSearchFormDisplay()}
actions={
[
@@ -565,27 +565,27 @@ export const AdminEvents = () => {
columns={[
{
name: "time",
- displayKey: "events:time",
+ displayKey: "time",
cellRenderer: (row) =>
formatDate(new Date(row.time!), FORMAT_DATE_AND_TIME),
},
{
name: "resourcePath",
- displayKey: "events:resourcePath",
+ displayKey: "resourcePath",
cellRenderer: CellResourceLinkRenderer,
},
{
name: "resourceType",
- displayKey: "events:resourceType",
+ displayKey: "resourceType",
},
{
name: "operationType",
- displayKey: "events:operationType",
+ displayKey: "operationType",
transforms: [cellWidth(10)],
},
{
name: "",
- displayKey: "events:user",
+ displayKey: "user",
cellRenderer: (event) => event.authDetails?.userId || "",
},
]}
diff --git a/js/apps/admin-ui/src/events/EventsSection.tsx b/js/apps/admin-ui/src/events/EventsSection.tsx
index 5c721c0e99c5..ea2f19bbbd91 100644
--- a/js/apps/admin-ui/src/events/EventsSection.tsx
+++ b/js/apps/admin-ui/src/events/EventsSection.tsx
@@ -279,8 +279,8 @@ export default function EventsSection() {
data-testid="event-type-searchField"
chipGroupProps={{
numChips: 1,
- expandedText: t("common:hide"),
- collapsedText: t("common:showRemaining"),
+ expandedText: t("hide"),
+ collapsedText: t("showRemaining"),
}}
variant={SelectVariant.typeaheadMulti}
typeAheadAriaLabel="Select"
@@ -456,7 +456,7 @@ export default function EventsSection() {
+
If you want to configure user events, Admin events or Event
listeners, please enter
@@ -494,29 +494,29 @@ export default function EventsSection() {
columns={[
{
name: "time",
- displayKey: "events:time",
+ displayKey: "time",
cellFormatters: [expandable],
cellRenderer: (row) =>
formatDate(new Date(row.time!), FORMAT_DATE_AND_TIME),
},
{
name: "userId",
- displayKey: "events:user",
+ displayKey: "user",
cellRenderer: UserDetailLink,
},
{
name: "type",
- displayKey: "events:eventType",
+ displayKey: "eventType",
cellRenderer: StatusRow,
},
{
name: "ipAddress",
- displayKey: "events:ipAddress",
+ displayKey: "ipAddress",
transforms: [cellWidth(10)],
},
{
name: "clientId",
- displayKey: "events:client",
+ displayKey: "client",
},
]}
emptyState={
diff --git a/js/apps/admin-ui/src/groups/GroupAttributes.tsx b/js/apps/admin-ui/src/groups/GroupAttributes.tsx
index b53c786d7725..f2d9422a00ba 100644
--- a/js/apps/admin-ui/src/groups/GroupAttributes.tsx
+++ b/js/apps/admin-ui/src/groups/GroupAttributes.tsx
@@ -51,7 +51,7 @@ export const GroupAttributes = () => {
setCurrentGroup({ ...currentGroup, attributes });
addAlert(t("groupUpdated"), AlertVariant.success);
} catch (error) {
- addError("groups:groupUpdateError", error);
+ addError("groupUpdateError", error);
}
};
diff --git a/js/apps/admin-ui/src/groups/GroupTable.tsx b/js/apps/admin-ui/src/groups/GroupTable.tsx
index 678afab60276..a1914d36d6f0 100644
--- a/js/apps/admin-ui/src/groups/GroupTable.tsx
+++ b/js/apps/admin-ui/src/groups/GroupTable.tsx
@@ -119,7 +119,7 @@ export const GroupTable = ({
onSelect={(rows) => setSelectedRows([...rows])}
canSelectAll
loader={loader}
- ariaLabelKey="groups:groups"
+ ariaLabelKey="groups"
isPaginated
isSearching={!!search}
toolbarItem={
@@ -176,7 +176,7 @@ export const GroupTable = ({
isSeparator: true,
},
{
- title: t("common:delete"),
+ title: t("delete"),
onRowClick: async (group: GroupRepresentation) => {
setSelectedRows([group]);
toggleShowDelete();
@@ -188,7 +188,7 @@ export const GroupTable = ({
columns={[
{
name: "name",
- displayKey: "groups:groupName",
+ displayKey: "groupName",
cellRenderer: (group) =>
canViewDetails ? (
diff --git a/js/apps/admin-ui/src/groups/GroupsModal.tsx b/js/apps/admin-ui/src/groups/GroupsModal.tsx
index ccd01d6eb6ca..0d6128126511 100644
--- a/js/apps/admin-ui/src/groups/GroupsModal.tsx
+++ b/js/apps/admin-ui/src/groups/GroupsModal.tsx
@@ -63,7 +63,7 @@ export const GroupsModal = ({
AlertVariant.success,
);
} catch (error) {
- addError("groups:couldNotCreateGroup", error);
+ addError("couldNotCreateGroup", error);
}
};
@@ -92,16 +92,16 @@ export const GroupsModal = ({
handleModalToggle();
}}
>
- {t("common:cancel")}
+ {t("cancel")}
,
]}
>
diff --git a/js/apps/admin-ui/src/realm-settings/NewClientPolicyCondition.tsx b/js/apps/admin-ui/src/realm-settings/NewClientPolicyCondition.tsx
index faf319327b1a..c83145af5824 100644
--- a/js/apps/admin-ui/src/realm-settings/NewClientPolicyCondition.tsx
+++ b/js/apps/admin-ui/src/realm-settings/NewClientPolicyCondition.tsx
@@ -256,7 +256,7 @@ export default function NewClientPolicyCondition() {
data-testid="addCondition-saveBtn"
isDisabled={conditionType === "" && !conditionName}
>
- {conditionName ? t("common:save") : t("common:add")}
+ {conditionName ? t("save") : t("add")}
diff --git a/js/apps/admin-ui/src/realm-settings/NewClientPolicyForm.tsx b/js/apps/admin-ui/src/realm-settings/NewClientPolicyForm.tsx
index af59d32daa55..e12e9bbf3685 100644
--- a/js/apps/admin-ui/src/realm-settings/NewClientPolicyForm.tsx
+++ b/js/apps/admin-ui/src/realm-settings/NewClientPolicyForm.tsx
@@ -118,7 +118,7 @@ export default function NewClientPolicyForm() {
const [toggleDisableDialog, DisableConfirm] = useConfirmDialog({
titleKey: "realm-settings:disablePolicyConfirmTitle",
messageKey: "realm-settings:disablePolicyConfirm",
- continueButtonLabel: "common:disable",
+ continueButtonLabel: "disable",
onConfirm: () => {
onChange(!value);
save();
@@ -461,7 +461,7 @@ export default function NewClientPolicyForm() {
className="pf-u-mt-lg"
>
policies?.some((policy) => policy.name === value)
? t("createClientProfileNameHelperText").toString()
@@ -488,7 +488,7 @@ export default function NewClientPolicyForm() {
})}
/>
-
+
- {t("common:save")}
+ {t("save")}
{(showAddConditionsAndProfilesForm || form.formState.isSubmitted) && (
diff --git a/js/apps/admin-ui/src/realm-settings/PartialExport.tsx b/js/apps/admin-ui/src/realm-settings/PartialExport.tsx
index a20ecd7fd6f2..931725ef320a 100644
--- a/js/apps/admin-ui/src/realm-settings/PartialExport.tsx
+++ b/js/apps/admin-ui/src/realm-settings/PartialExport.tsx
@@ -80,7 +80,7 @@ export const PartialExportDialog = ({
isDisabled={isExporting}
onClick={exportRealm}
>
- {t("common:export")}
+ {t("export")}
,
,
]}
>
@@ -109,8 +109,8 @@ export const PartialExportDialog = ({
data-testid="include-groups-and-roles-check"
isChecked={exportGroupsAndRoles}
onChange={setExportGroupsAndRoles}
- label={t("common:on")}
- labelOff={t("common:off")}
+ label={t("on")}
+ labelOff={t("off")}
aria-label={t("includeGroupsAndRoles")}
/>
@@ -124,8 +124,8 @@ export const PartialExportDialog = ({
data-testid="include-clients-check"
onChange={setExportClients}
isChecked={exportClients}
- label={t("common:on")}
- labelOff={t("common:off")}
+ label={t("on")}
+ labelOff={t("off")}
aria-label={t("includeClients")}
/>
diff --git a/js/apps/admin-ui/src/realm-settings/PartialImport.tsx b/js/apps/admin-ui/src/realm-settings/PartialImport.tsx
index b3a1a8c16826..e1976b25a69a 100644
--- a/js/apps/admin-ui/src/realm-settings/PartialImport.tsx
+++ b/js/apps/admin-ui/src/realm-settings/PartialImport.tsx
@@ -309,7 +309,7 @@ export const PartialImportDialog = (props: PartialImportProps) => {
props.toggleDialog();
}}
>
- {t("common:cancel")}
+ {t("cancel")}
,
]}
>
@@ -350,23 +350,20 @@ export const PartialImportDialog = (props: PartialImportProps) => {
{t("chooseResources")}:
@@ -437,12 +434,12 @@ export const PartialImportDialog = (props: PartialImportProps) => {
const TypeRenderer = (importRecord: PartialImportResult) => {
const typeMap = new Map([
- ["CLIENT", t("common:clients")],
- ["REALM_ROLE", t("common:realmRoles")],
- ["USER", t("common:users")],
- ["CLIENT_ROLE", t("common:clientRoles")],
- ["IDP", t("common:identityProviders")],
- ["GROUP", t("common:groups")],
+ ["CLIENT", t("clients")],
+ ["REALM_ROLE", t("realmRoles")],
+ ["USER", t("users")],
+ ["CLIENT_ROLE", t("clientRoles")],
+ ["IDP", t("identityProviders")],
+ ["GROUP", t("groups")],
]);
return {typeMap.get(importRecord.resourceType)};
@@ -465,7 +462,7 @@ export const PartialImportDialog = (props: PartialImportProps) => {
props.toggleDialog();
}}
>
- {t("common:close")}
+ {t("close")}
,
]}
>
@@ -477,21 +474,21 @@ export const PartialImportDialog = (props: PartialImportProps) => {
columns={[
{
name: "action",
- displayKey: "common:action",
+ displayKey: "action",
cellRenderer: ActionLabel,
},
{
name: "resourceType",
- displayKey: "common:type",
+ displayKey: "type",
cellRenderer: TypeRenderer,
},
{
name: "resourceName",
- displayKey: "common:name",
+ displayKey: "name",
},
{
name: "id",
- displayKey: "common:id",
+ displayKey: "id",
},
]}
/>
diff --git a/js/apps/admin-ui/src/realm-settings/PoliciesTab.tsx b/js/apps/admin-ui/src/realm-settings/PoliciesTab.tsx
index 5aed7574f24c..c2907959b6d7 100644
--- a/js/apps/admin-ui/src/realm-settings/PoliciesTab.tsx
+++ b/js/apps/admin-ui/src/realm-settings/PoliciesTab.tsx
@@ -105,7 +105,7 @@ export const PoliciesTab = () => {
const [toggleDisableDialog, DisableConfirm] = useConfirmDialog({
titleKey: "realm-settings:disablePolicyConfirmTitle",
messageKey: "realm-settings:disablePolicyConfirm",
- continueButtonLabel: "common:disable",
+ continueButtonLabel: "disable",
onConfirm: () => {
form.setValue(clientPolicy.name!, false);
saveStatus();
@@ -122,8 +122,8 @@ export const PoliciesTab = () => {
control={form.control}
render={({ field }) => (
{
if (!value) {
@@ -258,7 +258,7 @@ export const PoliciesTab = () => {
}
actions={[
{
- title: t("common:delete"),
+ title: t("delete"),
onRowClick: (item) => {
toggleDeleteDialog();
setSelectedPolicy(item);
diff --git a/js/apps/admin-ui/src/realm-settings/ProfilesTab.tsx b/js/apps/admin-ui/src/realm-settings/ProfilesTab.tsx
index 7a5a35e6ed01..e606080bda04 100644
--- a/js/apps/admin-ui/src/realm-settings/ProfilesTab.tsx
+++ b/js/apps/admin-ui/src/realm-settings/ProfilesTab.tsx
@@ -225,7 +225,7 @@ export default function ProfilesTab() {
isRowDisabled={(value) => value.global}
actions={[
{
- title: t("common:delete"),
+ title: t("delete"),
onRowClick: (profile) => {
setSelectedProfile(profile);
toggleDeleteDialog();
@@ -235,7 +235,7 @@ export default function ProfilesTab() {
columns={[
{
name: "name",
- displayKey: t("common:name"),
+ displayKey: t("name"),
cellRenderer: cellFormatter,
},
{
diff --git a/js/apps/admin-ui/src/realm-settings/RealmSettingsTabs.tsx b/js/apps/admin-ui/src/realm-settings/RealmSettingsTabs.tsx
index 0a85c180c264..7d8e45708a90 100644
--- a/js/apps/admin-ui/src/realm-settings/RealmSettingsTabs.tsx
+++ b/js/apps/admin-ui/src/realm-settings/RealmSettingsTabs.tsx
@@ -74,7 +74,7 @@ const RealmSettingsHeader = ({
const [toggleDisableDialog, DisableConfirm] = useConfirmDialog({
titleKey: "realm-settings:disableConfirmTitle",
messageKey: "disableConfirmRealm",
- continueButtonLabel: "common:disable",
+ continueButtonLabel: "disable",
onConfirm: () => {
onChange(!value);
save();
@@ -84,7 +84,7 @@ const RealmSettingsHeader = ({
const [toggleDeleteDialog, DeleteConfirm] = useConfirmDialog({
titleKey: "realm-settings:deleteConfirmTitle",
messageKey: "deleteConfirmRealmSetting",
- continueButtonLabel: "common:delete",
+ continueButtonLabel: "delete",
continueButtonVariant: ButtonVariant.danger,
onConfirm: async () => {
try {
@@ -135,7 +135,7 @@ const RealmSettingsHeader = ({
,
,
- {t("common:delete")}
+ {t("delete")}
,
]}
isEnabled={value}
diff --git a/js/apps/admin-ui/src/realm-settings/SessionsTab.tsx b/js/apps/admin-ui/src/realm-settings/SessionsTab.tsx
index 5b67166f3fe6..303f72cf0c9b 100644
--- a/js/apps/admin-ui/src/realm-settings/SessionsTab.tsx
+++ b/js/apps/admin-ui/src/realm-settings/SessionsTab.tsx
@@ -273,8 +273,8 @@ export const RealmSettingsSessionsTab = ({
id="kc-offline-session-max"
data-testid="offline-session-max-switch"
aria-label={t("offlineSessionMaxLimited")}
- label={t("common:enabled")}
- labelOff={t("common:disabled")}
+ label={t("enabled")}
+ labelOff={t("disabled")}
isChecked={field.value}
onChange={field.onChange}
/>
@@ -378,10 +378,10 @@ export const RealmSettingsSessionsTab = ({
data-testid="sessions-tab-save"
isDisabled={!formState.isDirty}
>
- {t("common:save")}
+ {t("save")}
diff --git a/js/apps/admin-ui/src/realm-settings/ThemesTab.tsx b/js/apps/admin-ui/src/realm-settings/ThemesTab.tsx
index 52ef59ebfdb6..60fdefbe7436 100644
--- a/js/apps/admin-ui/src/realm-settings/ThemesTab.tsx
+++ b/js/apps/admin-ui/src/realm-settings/ThemesTab.tsx
@@ -220,10 +220,10 @@ export const RealmSettingsThemesTab = ({
diff --git a/js/apps/admin-ui/src/realm-settings/TokensTab.tsx b/js/apps/admin-ui/src/realm-settings/TokensTab.tsx
index 0230dd8291a0..ac78a06d3443 100644
--- a/js/apps/admin-ui/src/realm-settings/TokensTab.tsx
+++ b/js/apps/admin-ui/src/realm-settings/TokensTab.tsx
@@ -233,8 +233,8 @@ export const RealmSettingsTokensTab = ({
id="kc-revoke-refresh-token"
data-testid="revoke-refresh-token-switch"
aria-label={t("revokeRefreshToken")}
- label={t("common:enabled")}
- labelOff={t("common:disabled")}
+ label={t("enabled")}
+ labelOff={t("disabled")}
isChecked={field.value}
onChange={field.onChange}
/>
@@ -557,10 +557,10 @@ export const RealmSettingsTokensTab = ({
data-testid="tokens-tab-save"
isDisabled={!form.formState.isDirty}
>
- {t("common:save")}
+ {t("save")}
diff --git a/js/apps/admin-ui/src/realm-settings/event-config/AddEventTypesDialog.tsx b/js/apps/admin-ui/src/realm-settings/event-config/AddEventTypesDialog.tsx
index b34fd39bf4a0..be069d9d2a10 100644
--- a/js/apps/admin-ui/src/realm-settings/event-config/AddEventTypesDialog.tsx
+++ b/js/apps/admin-ui/src/realm-settings/event-config/AddEventTypesDialog.tsx
@@ -33,7 +33,7 @@ export const AddEventTypesDialog = ({
variant="primary"
onClick={() => onConfirm(selectedTypes)}
>
- {t("common:add")}
+ {t("add")}
,
,
]}
>
diff --git a/js/apps/admin-ui/src/realm-settings/event-config/EventConfigForm.tsx b/js/apps/admin-ui/src/realm-settings/event-config/EventConfigForm.tsx
index 4d7d64dd0421..e49d7e559ded 100644
--- a/js/apps/admin-ui/src/realm-settings/event-config/EventConfigForm.tsx
+++ b/js/apps/admin-ui/src/realm-settings/event-config/EventConfigForm.tsx
@@ -66,8 +66,8 @@ export const EventConfigForm = ({
{
if (!value) {
@@ -103,8 +103,8 @@ export const EventConfigForm = ({
- {t("common:save")}
+ {t("save")}
diff --git a/js/apps/admin-ui/src/realm-settings/event-config/EventListenersForm.tsx b/js/apps/admin-ui/src/realm-settings/event-config/EventListenersForm.tsx
index 303276a2553e..f69f868b6a79 100644
--- a/js/apps/admin-ui/src/realm-settings/event-config/EventListenersForm.tsx
+++ b/js/apps/admin-ui/src/realm-settings/event-config/EventListenersForm.tsx
@@ -56,8 +56,8 @@ export const EventListenersForm = ({
data-testid="eventListeners-select"
chipGroupProps={{
numChips: 3,
- expandedText: t("common:hide"),
- collapsedText: t("common:showRemaining"),
+ expandedText: t("hide"),
+ collapsedText: t("showRemaining"),
}}
variant={SelectVariant.typeaheadMulti}
typeAheadAriaLabel="Select"
@@ -91,14 +91,14 @@ export const EventListenersForm = ({
data-testid={"saveEventListenerBtn"}
isDisabled={!isDirty}
>
- {t("common:save")}
+ {t("save")}
>
diff --git a/js/apps/admin-ui/src/realm-settings/event-config/EventsTab.tsx b/js/apps/admin-ui/src/realm-settings/event-config/EventsTab.tsx
index 59d4ede3350a..50b92f81ebb3 100644
--- a/js/apps/admin-ui/src/realm-settings/event-config/EventsTab.tsx
+++ b/js/apps/admin-ui/src/realm-settings/event-config/EventsTab.tsx
@@ -64,7 +64,7 @@ export const EventsTab = ({ realm }: EventsTabProps) => {
const [toggleDeleteDialog, DeleteConfirm] = useConfirmDialog({
titleKey: "realm-settings:deleteEvents",
messageKey: "realm-settings:deleteEventsConfirm",
- continueButtonLabel: "common:clear",
+ continueButtonLabel: "clear",
continueButtonVariant: ButtonVariant.danger,
onConfirm: async () => {
try {
diff --git a/js/apps/admin-ui/src/realm-settings/event-config/EventsTypeTable.tsx b/js/apps/admin-ui/src/realm-settings/event-config/EventsTypeTable.tsx
index 336c4e40eb1a..f0cbe06c4f9e 100644
--- a/js/apps/admin-ui/src/realm-settings/event-config/EventsTypeTable.tsx
+++ b/js/apps/admin-ui/src/realm-settings/event-config/EventsTypeTable.tsx
@@ -54,7 +54,7 @@ export function EventsTypeTable({
? []
: [
{
- title: t("common:remove"),
+ title: t("remove"),
onRowClick: onDelete,
} as Action,
]
diff --git a/js/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx b/js/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx
index 9059eec7568f..e643b9e8c0fe 100644
--- a/js/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx
+++ b/js/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx
@@ -112,7 +112,7 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => {
const [togglePublicKeyDialog, PublicKeyDialog] = useConfirmDialog({
titleKey: t("publicKeys").slice(0, -1),
messageKey: publicKey,
- continueButtonLabel: "common:close",
+ continueButtonLabel: "close",
continueButtonVariant: ButtonVariant.primary,
onConfirm: () => Promise.resolve(),
});
@@ -120,7 +120,7 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => {
const [toggleCertificateDialog, CertificateDialog] = useConfirmDialog({
titleKey: t("certificate"),
messageKey: certificate,
- continueButtonLabel: "common:close",
+ continueButtonLabel: "close",
continueButtonVariant: ButtonVariant.primary,
onConfirm: () => Promise.resolve(),
});
diff --git a/js/apps/admin-ui/src/realm-settings/keys/KeysProvidersTab.tsx b/js/apps/admin-ui/src/realm-settings/keys/KeysProvidersTab.tsx
index 12d4c6dedfc3..d029e8967fff 100644
--- a/js/apps/admin-ui/src/realm-settings/keys/KeysProvidersTab.tsx
+++ b/js/apps/admin-ui/src/realm-settings/keys/KeysProvidersTab.tsx
@@ -91,7 +91,7 @@ export const KeysProvidersTab = ({
messageKey: t("deleteProviderConfirm", {
provider: selectedComponent?.name,
}),
- continueButtonLabel: "common:delete",
+ continueButtonLabel: "delete",
continueButtonVariant: ButtonVariant.danger,
onConfirm: async () => {
try {
@@ -166,14 +166,14 @@ export const KeysProvidersTab = ({
id={"inputGroupName"}
data-testid="provider-search-input"
type="search"
- aria-label={t("common:search")}
- placeholder={t("common:search")}
+ aria-label={t("search")}
+ placeholder={t("search")}
onChange={handleInputChange}
onKeyDown={handleKeyDown}
/>
diff --git a/js/apps/admin-ui/src/realm-settings/security-defences/BruteForceDetection.tsx b/js/apps/admin-ui/src/realm-settings/security-defences/BruteForceDetection.tsx
index e4202e3bb681..0fc7a44822cc 100644
--- a/js/apps/admin-ui/src/realm-settings/security-defences/BruteForceDetection.tsx
+++ b/js/apps/admin-ui/src/realm-settings/security-defences/BruteForceDetection.tsx
@@ -54,7 +54,7 @@ export const BruteForceDetection = ({
onSubmit={handleSubmit(save)}
>
@@ -65,8 +65,8 @@ export const BruteForceDetection = ({
render={({ field }) => (
@@ -118,8 +118,8 @@ export const BruteForceDetection = ({
render={({ field }) => (
- {t("common:save")}
+ {t("save")}
diff --git a/js/apps/admin-ui/src/realm-settings/security-defences/HeadersForm.tsx b/js/apps/admin-ui/src/realm-settings/security-defences/HeadersForm.tsx
index 1cba11bd7e86..c2c726e86835 100644
--- a/js/apps/admin-ui/src/realm-settings/security-defences/HeadersForm.tsx
+++ b/js/apps/admin-ui/src/realm-settings/security-defences/HeadersForm.tsx
@@ -75,10 +75,10 @@ export const HeadersForm = ({ realm, save }: HeadersFormProps) => {
data-testid="headers-form-tab-save"
isDisabled={!isDirty}
>
- {t("common:save")}
+ {t("save")}
diff --git a/js/apps/admin-ui/src/realm-settings/security-defences/HelpLinkTextInput.tsx b/js/apps/admin-ui/src/realm-settings/security-defences/HelpLinkTextInput.tsx
index a35dac4998c5..8759a85286f3 100644
--- a/js/apps/admin-ui/src/realm-settings/security-defences/HelpLinkTextInput.tsx
+++ b/js/apps/admin-ui/src/realm-settings/security-defences/HelpLinkTextInput.tsx
@@ -27,7 +27,7 @@ export const HelpLinkTextInput = ({
helpText={
Default value prevents pages from being included
-
+
}
fieldLabelId={name}
diff --git a/js/apps/admin-ui/src/realm-settings/security-defences/Time.tsx b/js/apps/admin-ui/src/realm-settings/security-defences/Time.tsx
index a89058eb2587..09f9c83c85cf 100644
--- a/js/apps/admin-ui/src/realm-settings/security-defences/Time.tsx
+++ b/js/apps/admin-ui/src/realm-settings/security-defences/Time.tsx
@@ -32,7 +32,7 @@ export const Time = ({
validated={
errors[name] ? ValidatedOptions.error : ValidatedOptions.default
}
- helperTextInvalid={t("common:required")}
+ helperTextInvalid={t("required")}
>
)}
>
- {t("common:cancel")}
+ {t("cancel")}
diff --git a/js/apps/admin-ui/src/realm-settings/user-profile/AttributesGroupTab.tsx b/js/apps/admin-ui/src/realm-settings/user-profile/AttributesGroupTab.tsx
index 2d6799f90f8f..b8051b5362a7 100644
--- a/js/apps/admin-ui/src/realm-settings/user-profile/AttributesGroupTab.tsx
+++ b/js/apps/admin-ui/src/realm-settings/user-profile/AttributesGroupTab.tsx
@@ -42,7 +42,7 @@ export const AttributesGroupTab = () => {
{{ group: groupToDelete?.name }}.
),
- continueButtonLabel: "common:delete",
+ continueButtonLabel: "delete",
continueButtonVariant: ButtonVariant.danger,
onConfirm() {
const groups = (config?.groups ?? []).filter(
@@ -103,7 +103,7 @@ export const AttributesGroupTab = () => {
]}
actions={[
{
- title: t("common:delete"),
+ title: t("delete"),
onRowClick: deleteAttributeGroup,
} as Action,
]}
diff --git a/js/apps/admin-ui/src/realm-settings/user-profile/AttributesTab.tsx b/js/apps/admin-ui/src/realm-settings/user-profile/AttributesTab.tsx
index 6ccd05e97f68..3715b15a2e2a 100644
--- a/js/apps/admin-ui/src/realm-settings/user-profile/AttributesTab.tsx
+++ b/js/apps/admin-ui/src/realm-settings/user-profile/AttributesTab.tsx
@@ -70,7 +70,7 @@ export const AttributesTab = () => {
messageKey: t("deleteAttributeConfirm", {
attributeName: attributeToDelete,
}),
- continueButtonLabel: t("common:delete"),
+ continueButtonLabel: t("delete"),
continueButtonVariant: ButtonVariant.danger,
onConfirm: async () => {
save(
@@ -174,7 +174,7 @@ export const AttributesTab = () => {
}}
actions={[
{
- title: t("common:edit"),
+ title: t("edit"),
onClick: (_key, _idx, component) => {
navigate(
toAttribute({
@@ -185,7 +185,7 @@ export const AttributesTab = () => {
},
},
{
- title: t("common:delete"),
+ title: t("delete"),
isActionable: ({ name }) => !RESTRICTED_ATTRIBUTES.includes(name!),
onClick: (_key, _idx, component) => {
setAttributeToDelete(component.name);
diff --git a/js/apps/admin-ui/src/realm-settings/user-profile/JsonEditorTab.tsx b/js/apps/admin-ui/src/realm-settings/user-profile/JsonEditorTab.tsx
index 5762ffebee25..d91080241dcf 100644
--- a/js/apps/admin-ui/src/realm-settings/user-profile/JsonEditorTab.tsx
+++ b/js/apps/admin-ui/src/realm-settings/user-profile/JsonEditorTab.tsx
@@ -50,10 +50,10 @@ export const JsonEditorTab = () => {
onClick={handleSave}
isDisabled={isSaving}
>
- {t("common:save")}
+ {t("save")}
diff --git a/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AddValidatorDialog.tsx b/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AddValidatorDialog.tsx
index 6ccf992f44d3..0a6bfe9695ae 100644
--- a/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AddValidatorDialog.tsx
+++ b/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AddValidatorDialog.tsx
@@ -50,7 +50,7 @@ export const AddValidatorDialog = ({
type="submit"
form="add-validator"
>
- {t("common:save")}
+ {t("save")}
,
,
]}
>
diff --git a/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AttributeGeneralSettings.tsx b/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AttributeGeneralSettings.tsx
index 6aacd137018b..8b320a7d4a9b 100644
--- a/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AttributeGeneralSettings.tsx
+++ b/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AttributeGeneralSettings.tsx
@@ -136,12 +136,12 @@ export const AttributeGeneralSettings = () => {
field.onChange(value.toString());
setIsAttributeGroupDropdownOpen(false);
}}
- selections={[field.value || t("common:none")]}
+ selections={[field.value || t("none")]}
variant={SelectVariant.single}
>
{[
- {t("common:none")}
+ {t("none")}
,
...(config?.groups?.map((group) => (
@@ -211,8 +211,8 @@ export const AttributeGeneralSettings = () => {
typeAheadAriaLabel="Select"
chipGroupProps={{
numChips: 3,
- expandedText: t("common:hide"),
- collapsedText: t("common:showRemaining"),
+ expandedText: t("hide"),
+ collapsedText: t("showRemaining"),
}}
onToggle={(isOpen) => setSelectEnabledWhenOpen(isOpen)}
selections={field.value}
@@ -267,8 +267,8 @@ export const AttributeGeneralSettings = () => {
id={"kc-required"}
onChange={field.onChange}
isChecked={field.value}
- label={t("common:on")}
- labelOff={t("common:off")}
+ label={t("on")}
+ labelOff={t("off")}
aria-label={t("required")}
/>
)}
@@ -361,8 +361,8 @@ export const AttributeGeneralSettings = () => {
typeAheadAriaLabel="Select"
chipGroupProps={{
numChips: 3,
- expandedText: t("common:hide"),
- collapsedText: t("common:showRemaining"),
+ expandedText: t("hide"),
+ collapsedText: t("showRemaining"),
}}
onToggle={(isOpen) => setSelectRequiredForOpen(isOpen)}
selections={field.value}
diff --git a/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AttributeValidations.tsx b/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AttributeValidations.tsx
index c991b30d2590..c9c50c8c558b 100644
--- a/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AttributeValidations.tsx
+++ b/js/apps/admin-ui/src/realm-settings/user-profile/attribute/AttributeValidations.tsx
@@ -47,7 +47,7 @@ export const AttributeValidations = () => {
messageKey: t("deleteValidatorConfirmMsg", {
validatorName: validatorToDelete,
}),
- continueButtonLabel: "common:delete",
+ continueButtonLabel: "delete",
continueButtonVariant: ButtonVariant.danger,
onConfirm: async () => {
const updatedValidators = validators.filter(
@@ -123,7 +123,7 @@ export const AttributeValidations = () => {
setValidatorToDelete(validator.key);
}}
>
- {t("common:delete")}
+ {t("delete")}