Skip to content

Commit

Permalink
Merge pull request #6958 from pavinduLakshan/fix_broken_i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored Oct 4, 2024
2 parents 6e5cb91 + 059caf9 commit b814db7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/big-sloths-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@wso2is/admin.connections.v1": patch
"@wso2is/i18n": patch
---

Fix broken i18n in trusted token issuer advanced tab
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ FunctionComponent<TrustedTokenIssuerAdvanceConfigurationsFormPropsInterface> = (
options={ primaryClaimList }
data-componentid={ `${componentId}-primary-lookup-attribute` }
listen={ primaryAttributeChangeListener }
placeholder={ t("console:develop.features.idp.forms.advancedConfigs." +
placeholder={ t("idp:forms.advancedConfigs." +
"implicitAssociation.primaryAttribute.placeholder") }
enableReinitialize={ true }
hint={ (<Hint disabled={ !implicitAssociationEnabled }>
Expand All @@ -220,7 +220,7 @@ FunctionComponent<TrustedTokenIssuerAdvanceConfigurationsFormPropsInterface> = (
data-componentid={ `${componentId}-secondary-lookup-attribute` }
listen={ secondaryAttributeChangeListener }
enableReinitialize={ true }
placeholder={ t("console:develop.features.idp.forms.advancedConfigs." +
placeholder={ t("idp:forms.advancedConfigs." +
"implicitAssociation.secondaryAttribute.placeholder") }
clearable={ true }
hint={ (<Hint disabled={ !implicitAssociationEnabled }>
Expand Down
2 changes: 2 additions & 0 deletions modules/i18n/src/models/namespaces/idp-ns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,12 @@ export interface IdpNS {
primaryAttribute: {
label: string;
hint: string;
placeholder: string;
};
secondaryAttribute: {
label: string;
hint: string;
placeholder: string;
};
warning: string;
};
Expand Down
6 changes: 4 additions & 2 deletions modules/i18n/src/translations/en-US/portals/idp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,13 @@ export const idp: IdpNS = {
primaryAttribute: {
hint: "Select the primary attribute that will be used to check if" +
" there is a matching local user account",
label: "Primary lookup attribute"
label: "Primary lookup attribute",
placeholder: "No attributes are selected"
},
secondaryAttribute: {
hint: "Secondary attribute will be used if a unique user is not found using the primary attribute",
label: "Secondary lookup attribute"
label: "Secondary lookup attribute",
placeholder: "No attributes are selected"
},
warning: "Ensure that the selected attributes are verified by the token issuer"
}
Expand Down

0 comments on commit b814db7

Please sign in to comment.