Skip to content

Commit

Permalink
Add i18n translations for organization name
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan committed Oct 14, 2024
1 parent 76ddcf1 commit 9e14452
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import React, {
useEffect,
useState
} from "react";
import { useTranslation } from "react-i18next";
import { useSelector } from "react-redux";
import AdministratorsList from "./administrators-list/administrators-list";
import InvitedAdministratorsList from "./invited-administrators/invited-administrators-list";
Expand All @@ -57,6 +58,7 @@ const ConsoleAdministrators: FunctionComponent<ConsoleAdministratorsInterface> =
const { [ "data-componentid" ]: componentId } = props;

const { isFirstLevelOrganization, isSubOrganization } = useGetCurrentOrganizationType();
const { t } = useTranslation();

const consoleSettingsFeatureConfig: FeatureAccessConfigInterface =
useSelector((state: AppState) => state?.config?.ui?.features?.consoleSettings);
Expand All @@ -71,6 +73,7 @@ const ConsoleAdministrators: FunctionComponent<ConsoleAdministratorsInterface> =
const [ isEnterpriseLoginEnabled, setIsEnterpriseLoginEnabled ] = useState<boolean>(false);

const organizationName: string = store.getState().auth.tenantDomain;
const productName: string = useSelector((state: AppState) => state.config.ui.productName);

const useOrgConfig: UseOrganizationConfigType = useOrganizationConfigV2;

Expand Down Expand Up @@ -186,11 +189,11 @@ const ConsoleAdministrators: FunctionComponent<ConsoleAdministratorsInterface> =
value={ activeAdministratorGroup }
onChange={ (_: ChangeEvent<HTMLInputElement>, value: string) => setActiveAdministratorGroup(value) }
>
<FormControlLabel value="administrators" control={ <Radio /> } label="Asgardeo" />
<FormControlLabel value="administrators" control={ <Radio /> } label={ productName } />
<FormControlLabel
value="privilegedUsers"
control={ <Radio /> }
label={ organizationName + " organization" }
label={ t("common:organizationName", { orgName: organizationName }) }
/>
</RadioGroup>
);
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/models/namespaces/common-ns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export interface CommonNS {
name: string;
new: string;
next: string;
organizationName: string;
operatingSystem: string;
operations: string;
overview: string;
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/translations/de-DE/portals/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const common: CommonNS = {
"okay": "Okay",
"operatingSystem": "Betriebssystem",
"operations": "Betrieb",
"organizationName": "{{orgName}} Organisation",
"overview": "Überblick",
"personalInfo": "Persönliche Informationen",
"pin": "PIN",
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/translations/en-US/portals/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const common: CommonNS = {
okay: "Okay",
operatingSystem: "Operating system",
operations: "Operations",
organizationName: "{{orgName}} organization",
overview: "Overview",
personalInfo: "Personal Info",
pin: "Pin",
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/translations/es-ES/portals/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const common: CommonNS = {
okay: "Okey",
operatingSystem: "Sistema operativo",
operations: "Operaciones",
organizationName: "organización {{orgName}}",
overview: "Descripción general",
personalInfo: "Información personal",
pin: "Alfiler",
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/translations/fr-FR/portals/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const common: CommonNS = {
okay: "d'accord",
operatingSystem: "Système d'exploitation",
operations: "Opérations",
organizationName: "{{orgName}} organisation",
overview: "Vue d'ensemble",
personalInfo: "Informations personnelles",
pin: "Épingler",
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/translations/ja-JP/portals/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const common: CommonNS = {
"okay": "わかった",
"operatingSystem": "オペレーティング·システム",
"operations": "オペレーション",
"organizationName": "{{orgName}} 組織",
"overview": "概要",
"personalInfo": "個人情報",
"pin": "ピン",
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/translations/pt-BR/portals/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const common: CommonNS = {
okay: "Ok",
operatingSystem: "Sistema operacional",
operations: "Operações",
organizationName: "Organização {{orgName}}",
overview: "Visão Geral",
personalInfo: "Informação Pessoal",
pin: "Fixar",
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/translations/pt-PT/portals/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const common: CommonNS = {
okay: "OK",
operatingSystem: "Sistema operacional",
operations: "Operações",
organizationName: "Organização {{orgName}}",
overview: "visão global",
personalInfo: "Informação pessoal",
pin: "Bastão",
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/translations/si-LK/portals/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const common: CommonNS = {
okay: "හරි",
operatingSystem: "මෙහෙයුම් පද්ධතිය",
operations: "මෙහෙයුම්",
organizationName: "{{orgName}} සංවිධානය",
overview: "දළ විශ්ලේෂණය",
personalInfo: "පෞද්ගලික තොරතුරු",
pin: "තබා ගන්න",
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/translations/ta-IN/portals/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const common: CommonNS = {
okay: "சரி",
operatingSystem: "இயங்கு தளம்",
operations: "செயற்பாடுகள்",
organizationName: "{{orgName}} நிறுவனம்",
overview: "கண்ணோட்டம்",
personalInfo: "பயனர் விபரம்",
pin: "பொருத்து",
Expand Down
1 change: 1 addition & 0 deletions modules/i18n/src/translations/zh-CN/portals/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const common: CommonNS = {
"okay": "好的",
"operatingSystem": "操作系统",
"operations": "操作",
"organizationName": "{{orgName}} 组织",
"overview": "概述",
"personalInfo": "个人信息",
"pin": "别针",
Expand Down

0 comments on commit 9e14452

Please sign in to comment.