mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 17:04:54 +00:00
Localization refactor part3 (#10442)
* ui: refactor localization file * addressing comments * fixed failing unit test * ui: refactoring localization part 2 * miner fix * fixing cypress and miner localization changes * Localization refactor part 3 * updated sync-i18n commond for empty key sync, and removed empty key-value from other language * sync fr-fr and zh-cn file * updated script to not include empty empty localization key * added refresh after language change and i18n script to lintstagedrc file
This commit is contained in:
parent
de10cd254b
commit
a6048228f4
@ -12,7 +12,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Insert license header
|
# Insert license header
|
||||||
'*': yarn license-header-fix
|
'*':
|
||||||
|
- yarn license-header-fix
|
||||||
|
# Sync localization file
|
||||||
|
- yarn i18n
|
||||||
|
|
||||||
'*.{ts,tsx,js,jsx}':
|
'*.{ts,tsx,js,jsx}':
|
||||||
# Organize Imports
|
# Organize Imports
|
||||||
|
@ -122,7 +122,7 @@
|
|||||||
"cypress:open": "cypress open --e2e",
|
"cypress:open": "cypress open --e2e",
|
||||||
"cypress:run": "cypress run --config-file=cypress.config.ts",
|
"cypress:run": "cypress run --config-file=cypress.config.ts",
|
||||||
"cypress:run:record": "cypress run --config-file=cypress.config.ts --record --parallel",
|
"cypress:run:record": "cypress run --config-file=cypress.config.ts --record --parallel",
|
||||||
"i18n": "sync-i18n --files '**/locale/languages/*.json' --primary en-us --space 2 -e ",
|
"i18n": "sync-i18n --files '**/locale/languages/*.json' --primary en-us --space 2 ",
|
||||||
"check-i18n": "npm run i18n -- --check"
|
"check-i18n": "npm run i18n -- --check"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
|
@ -119,7 +119,7 @@ const AddDataQualityTestV1: React.FC<AddDataQualityTestProps> = ({
|
|||||||
url: getTableTabPath(entityTypeFQN, 'profiler'),
|
url: getTableTabPath(entityTypeFQN, 'profiler'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: t('message.add-entity-test', { entity: t('label.column') }),
|
name: t('label.add-entity-test', { entity: t('label.column') }),
|
||||||
url: '',
|
url: '',
|
||||||
activeTitle: true,
|
activeTitle: true,
|
||||||
},
|
},
|
||||||
@ -127,7 +127,7 @@ const AddDataQualityTestV1: React.FC<AddDataQualityTestProps> = ({
|
|||||||
data.push(...colVal);
|
data.push(...colVal);
|
||||||
} else {
|
} else {
|
||||||
data.push({
|
data.push({
|
||||||
name: t('message.add-entity-test', { entity: t('label.table') }),
|
name: t('label.add-entity-test', { entity: t('label.table') }),
|
||||||
url: '',
|
url: '',
|
||||||
activeTitle: true,
|
activeTitle: true,
|
||||||
});
|
});
|
||||||
@ -289,7 +289,7 @@ const AddDataQualityTestV1: React.FC<AddDataQualityTestProps> = ({
|
|||||||
<Typography.Paragraph
|
<Typography.Paragraph
|
||||||
className="tw-heading tw-text-base"
|
className="tw-heading tw-text-base"
|
||||||
data-testid="header">
|
data-testid="header">
|
||||||
{t('message.add-entity-test', {
|
{t('label.add-entity-test', {
|
||||||
entity: isColumnFqn ? t('label.column') : t('label.table'),
|
entity: isColumnFqn ? t('label.column') : t('label.table'),
|
||||||
})}
|
})}
|
||||||
</Typography.Paragraph>
|
</Typography.Paragraph>
|
||||||
|
@ -379,7 +379,9 @@ const AddGlossaryTerm = ({
|
|||||||
data-testid="synonyms"
|
data-testid="synonyms"
|
||||||
id="synonyms"
|
id="synonyms"
|
||||||
name="synonyms"
|
name="synonyms"
|
||||||
placeholder={t('message.enter-comma-separated-keywords')}
|
placeholder={t('message.enter-comma-separated-field', {
|
||||||
|
field: t('label.keyword-lowercase-plural'),
|
||||||
|
})}
|
||||||
type="text"
|
type="text"
|
||||||
value={synonyms}
|
value={synonyms}
|
||||||
onChange={handleValidation}
|
onChange={handleValidation}
|
||||||
|
@ -97,7 +97,7 @@ const MetadataToESConfigForm = ({
|
|||||||
<Divider />
|
<Divider />
|
||||||
<Form.Item
|
<Form.Item
|
||||||
className="switch-item"
|
className="switch-item"
|
||||||
label={t('label.use-ssl')}
|
label={t('label.use-ssl-uppercase')}
|
||||||
name="useSSL">
|
name="useSSL">
|
||||||
<Switch />
|
<Switch />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
@ -116,7 +116,7 @@ const CreateUser = ({
|
|||||||
const slashedBreadcrumbList = useMemo(
|
const slashedBreadcrumbList = useMemo(
|
||||||
() => [
|
() => [
|
||||||
{
|
{
|
||||||
name: forceBot ? t('label.bot-plural') : t('label.users'),
|
name: forceBot ? t('label.bot-plural') : t('label.user-plural'),
|
||||||
url: forceBot ? getBotsPagePath() : getUsersPagePath(),
|
url: forceBot ? getBotsPagePath() : getUsersPagePath(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1260,7 +1260,12 @@ const EntityLineageComponent: FunctionComponent<EntityLineageProp> = ({
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
showErrorToast(error as AxiosError, t('server.fetch-suggestions-error'));
|
showErrorToast(
|
||||||
|
error as AxiosError,
|
||||||
|
t('server.entity-fetch-error', {
|
||||||
|
entity: t('label.suggestion-lowercase-plural'),
|
||||||
|
})
|
||||||
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -168,7 +168,9 @@ const EntityVersionTimeLine: React.FC<Props> = ({
|
|||||||
return (
|
return (
|
||||||
<div className={classNames('timeline-drawer', { open: show })}>
|
<div className={classNames('timeline-drawer', { open: show })}>
|
||||||
<header className="tw-flex tw-justify-between">
|
<header className="tw-flex tw-justify-between">
|
||||||
<p className="tw-font-medium tw-mr-2">{t('label.versions-history')}</p>
|
<p className="tw-font-medium tw-mr-2">
|
||||||
|
{t('label.version-plural-history')}
|
||||||
|
</p>
|
||||||
<div className="tw-flex" onClick={onBack}>
|
<div className="tw-flex" onClick={onBack}>
|
||||||
<svg
|
<svg
|
||||||
className="tw-w-5 tw-h-5 tw-ml-1 tw-cursor-pointer"
|
className="tw-w-5 tw-h-5 tw-ml-1 tw-cursor-pointer"
|
||||||
|
@ -963,7 +963,9 @@ const TeamDetailsV1 = ({
|
|||||||
data-testid="synonyms"
|
data-testid="synonyms"
|
||||||
id="synonyms"
|
id="synonyms"
|
||||||
name="synonyms"
|
name="synonyms"
|
||||||
placeholder={t('message.enter-comma-separated-term')}
|
placeholder={t('message.enter-comma-separated-field', {
|
||||||
|
field: t('label.term-lowercase'),
|
||||||
|
})}
|
||||||
type="text"
|
type="text"
|
||||||
value={heading}
|
value={heading}
|
||||||
onChange={(e) => setHeading(e.target.value)}
|
onChange={(e) => setHeading(e.target.value)}
|
||||||
|
@ -47,7 +47,7 @@ const ChangePasswordForm: React.FC<ChangePasswordForm> = ({
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
htmlType: 'submit',
|
htmlType: 'submit',
|
||||||
}}
|
}}
|
||||||
okText={t('label.update-password')}
|
okText={t('label.update-entity', { entity: t('label.password') })}
|
||||||
open={visible}
|
open={visible}
|
||||||
title={t('label.change-entity', {
|
title={t('label.change-entity', {
|
||||||
entity: t('label.password'),
|
entity: t('label.password'),
|
||||||
|
@ -122,7 +122,7 @@ const ErrorPlaceHolderES = ({ type, errorMessage, query = '' }: Props) => {
|
|||||||
<div className="tw-mb-5" data-testid="es-error">
|
<div className="tw-mb-5" data-testid="es-error">
|
||||||
<div className="tw-mb-3 tw-text-center">
|
<div className="tw-mb-3 tw-text-center">
|
||||||
<p>
|
<p>
|
||||||
<span>{t('label.welcome-to-open-metadata')} </span>
|
<span>{t('message.welcome-to-open-metadata')} </span>
|
||||||
<span data-testid="error-text">
|
<span data-testid="error-text">
|
||||||
{t('message.unable-to-error-elasticsearch', { error: errorText })}
|
{t('message.unable-to-error-elasticsearch', { error: errorText })}
|
||||||
</span>
|
</span>
|
||||||
|
@ -19,6 +19,7 @@ import { debounce, toString } from 'lodash';
|
|||||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { NavLink, useHistory } from 'react-router-dom';
|
import { NavLink, useHistory } from 'react-router-dom';
|
||||||
|
import { refreshPage } from 'utils/CommonUtils';
|
||||||
import AppState from '../../AppState';
|
import AppState from '../../AppState';
|
||||||
import Logo from '../../assets/svg/logo-monogram.svg';
|
import Logo from '../../assets/svg/logo-monogram.svg';
|
||||||
|
|
||||||
@ -284,6 +285,7 @@ const NavBar = ({
|
|||||||
const handleLanguageChange = useCallback((langCode: string) => {
|
const handleLanguageChange = useCallback((langCode: string) => {
|
||||||
setLanguage(langCode);
|
setLanguage(langCode);
|
||||||
i18next.changeLanguage(langCode);
|
i18next.changeLanguage(langCode);
|
||||||
|
refreshPage();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleModalCancel = useCallback(() => handleFeatureModal(false), []);
|
const handleModalCancel = useCallback(() => handleFeatureModal(false), []);
|
||||||
|
@ -22,7 +22,7 @@ const Onboarding: FC = () => {
|
|||||||
className="tw-mt-10 tw-text-base tw-font-medium"
|
className="tw-mt-10 tw-text-base tw-font-medium"
|
||||||
data-testid="onboarding">
|
data-testid="onboarding">
|
||||||
<div className="tw-text-center tw-text-xl tw-font-semibold tw-mb-1">
|
<div className="tw-text-center tw-text-xl tw-font-semibold tw-mb-1">
|
||||||
{t('label.welcome-to-open-metadata')}
|
{t('message.welcome-to-open-metadata')}
|
||||||
</div>
|
</div>
|
||||||
<div className="tw-mb-5">
|
<div className="tw-mb-5">
|
||||||
<div className="tw-mb-3 tw-text-center">
|
<div className="tw-mb-3 tw-text-center">
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
"add-custom-entity-property": "Add Custom {{entity}} Property",
|
"add-custom-entity-property": "Add Custom {{entity}} Property",
|
||||||
"add-deploy": "Add & Deploy",
|
"add-deploy": "Add & Deploy",
|
||||||
"add-entity": "Add {{entity}}",
|
"add-entity": "Add {{entity}}",
|
||||||
|
"add-entity-test": "Add {{entity}} test",
|
||||||
"add-new-entity": "Add New {{entity}}",
|
"add-new-entity": "Add New {{entity}}",
|
||||||
"add-workflow-ingestion": "Add {{workflow}} Ingestion",
|
"add-workflow-ingestion": "Add {{workflow}} Ingestion",
|
||||||
"added": "Added",
|
"added": "Added",
|
||||||
@ -376,6 +377,7 @@
|
|||||||
"jump-to-end": "Jump to End",
|
"jump-to-end": "Jump to End",
|
||||||
"june": "June",
|
"june": "June",
|
||||||
"jwt-uppercase": "JWT",
|
"jwt-uppercase": "JWT",
|
||||||
|
"keyword-lowercase-plural": "keywords",
|
||||||
"kill": "Kill",
|
"kill": "Kill",
|
||||||
"kpi-display-name": "KPI Display Name",
|
"kpi-display-name": "KPI Display Name",
|
||||||
"kpi-list": "KPI List",
|
"kpi-list": "KPI List",
|
||||||
@ -707,6 +709,7 @@
|
|||||||
"table-plural": "Tables",
|
"table-plural": "Tables",
|
||||||
"table-tests-summary": "Table Tests Summary",
|
"table-tests-summary": "Table Tests Summary",
|
||||||
"tag": "Tag",
|
"tag": "Tag",
|
||||||
|
"tag-category-lowercase": "tag category",
|
||||||
"tag-lowercase": "tag",
|
"tag-lowercase": "tag",
|
||||||
"tag-plural": "Tags",
|
"tag-plural": "Tags",
|
||||||
"target": "Target",
|
"target": "Target",
|
||||||
@ -756,7 +759,6 @@
|
|||||||
"topic-lowercase": "topic",
|
"topic-lowercase": "topic",
|
||||||
"topic-name": "Topic Name",
|
"topic-name": "Topic Name",
|
||||||
"topic-plural": "Topics",
|
"topic-plural": "Topics",
|
||||||
"topics": "Topics",
|
|
||||||
"total-entity": "Total {{entity}}",
|
"total-entity": "Total {{entity}}",
|
||||||
"total-index-sent": " Total index sent",
|
"total-index-sent": " Total index sent",
|
||||||
"tour": "Tour",
|
"tour": "Tour",
|
||||||
@ -775,7 +777,6 @@
|
|||||||
"update": "Update",
|
"update": "Update",
|
||||||
"update-description": "Update Description",
|
"update-description": "Update Description",
|
||||||
"update-entity": "Update {{entity}}",
|
"update-entity": "Update {{entity}}",
|
||||||
"update-password": "Update Password",
|
|
||||||
"update-request-tag-plural": "Update Request Tags",
|
"update-request-tag-plural": "Update Request Tags",
|
||||||
"updated": "Updated",
|
"updated": "Updated",
|
||||||
"updated-by": "Updated by",
|
"updated-by": "Updated by",
|
||||||
@ -789,7 +790,7 @@
|
|||||||
"usage-lowercase": "usage",
|
"usage-lowercase": "usage",
|
||||||
"use-aws-credential-plural": "Use AWS Credentials",
|
"use-aws-credential-plural": "Use AWS Credentials",
|
||||||
"use-fqn-for-filtering": "Use FQN For Filtering",
|
"use-fqn-for-filtering": "Use FQN For Filtering",
|
||||||
"use-ssl": "Use SSL",
|
"use-ssl-uppercase": "Use SSL",
|
||||||
"user": "User",
|
"user": "User",
|
||||||
"user-account": "User account",
|
"user-account": "User account",
|
||||||
"user-analytics-report": "User Analytics Report",
|
"user-analytics-report": "User Analytics Report",
|
||||||
@ -798,7 +799,6 @@
|
|||||||
"user-plural": "Users",
|
"user-plural": "Users",
|
||||||
"username": "Username",
|
"username": "Username",
|
||||||
"username-or-email": "Username or Email",
|
"username-or-email": "Username or Email",
|
||||||
"users": "Users",
|
|
||||||
"valid-condition": "Valid condition",
|
"valid-condition": "Valid condition",
|
||||||
"validating-condition": "Validating the condition...",
|
"validating-condition": "Validating the condition...",
|
||||||
"value": "Value",
|
"value": "Value",
|
||||||
@ -807,7 +807,7 @@
|
|||||||
"verify-cert-plural": "Verify Certs",
|
"verify-cert-plural": "Verify Certs",
|
||||||
"version": "Version",
|
"version": "Version",
|
||||||
"version-plural": "Versions",
|
"version-plural": "Versions",
|
||||||
"versions-history": "Versions History",
|
"version-plural-history": "Versions History",
|
||||||
"view": "View",
|
"view": "View",
|
||||||
"view-all": "View All",
|
"view-all": "View All",
|
||||||
"view-entity": "View {{entity}}",
|
"view-entity": "View {{entity}}",
|
||||||
@ -819,7 +819,6 @@
|
|||||||
"webhook-display-text": "Webhook {{displayText}}",
|
"webhook-display-text": "Webhook {{displayText}}",
|
||||||
"wednesday": "Wednesday",
|
"wednesday": "Wednesday",
|
||||||
"week": "Week",
|
"week": "Week",
|
||||||
"welcome-to-open-metadata": "Welcome to OpenMetadata!",
|
|
||||||
"whats-new": "What's New",
|
"whats-new": "What's New",
|
||||||
"yes": "Yes",
|
"yes": "Yes",
|
||||||
"your-entity": "Your {{entity}}"
|
"your-entity": "Your {{entity}}"
|
||||||
@ -829,7 +828,6 @@
|
|||||||
"action-has-been-done-but-deploy-successfully": "has been {{action}} and deployed successfully",
|
"action-has-been-done-but-deploy-successfully": "has been {{action}} and deployed successfully",
|
||||||
"action-has-been-done-but-failed-to-deploy": "has been {{action}}, but failed to deploy",
|
"action-has-been-done-but-failed-to-deploy": "has been {{action}}, but failed to deploy",
|
||||||
"active-users": "Display the number of active users.",
|
"active-users": "Display the number of active users.",
|
||||||
"add-entity-test": "Add {{entity}} test",
|
|
||||||
"add-kpi-message": "Identify the Key Performance Indicators (KPI) that best reflect the health of your data assets. Review your data assets based on Description, Ownership, and Tier. Define your target metrics in absolute or percentage to track your progress. Finally, set a start and end date to achieve your data goals.",
|
"add-kpi-message": "Identify the Key Performance Indicators (KPI) that best reflect the health of your data assets. Review your data assets based on Description, Ownership, and Tier. Define your target metrics in absolute or percentage to track your progress. Finally, set a start and end date to achieve your data goals.",
|
||||||
"add-new-service-description": "Choose from the range of services that OpenMetadata integrates with. To add a new service, start by selecting a Service Category (Database, Messaging, Dashboard, or Pipeline). From the list of available services, select the one you'd want to integrate with.",
|
"add-new-service-description": "Choose from the range of services that OpenMetadata integrates with. To add a new service, start by selecting a Service Category (Database, Messaging, Dashboard, or Pipeline). From the list of available services, select the one you'd want to integrate with.",
|
||||||
"add-policy-message": "Policies are assigned to teams. In OpenMetadata, a policy is a collection of rules, which define access based on certain conditions. We support rich SpEL (Spring Expression Language) based conditions. All the operations supported by an entity are published. Use these fine grained operations to define the conditional rules for each policy. Create well-defined policies based on conditional rules to build rich access control roles.",
|
"add-policy-message": "Policies are assigned to teams. In OpenMetadata, a policy is a collection of rules, which define access based on certain conditions. We support rich SpEL (Spring Expression Language) based conditions. All the operations supported by an entity are published. Use these fine grained operations to define the conditional rules for each policy. Create well-defined policies based on conditional rules to build rich access control roles.",
|
||||||
@ -918,8 +916,6 @@
|
|||||||
"enter-a-field": "Enter a {{field}}",
|
"enter-a-field": "Enter a {{field}}",
|
||||||
"enter-column-description": "Enter column description",
|
"enter-column-description": "Enter column description",
|
||||||
"enter-comma-separated-field": "Enter comma(,) separated {{field}}",
|
"enter-comma-separated-field": "Enter comma(,) separated {{field}}",
|
||||||
"enter-comma-separated-keywords": "Enter comma separated keywords",
|
|
||||||
"enter-comma-separated-term": "Enter comma separated term",
|
|
||||||
"enter-display-name": "Enter display name",
|
"enter-display-name": "Enter display name",
|
||||||
"enter-feature-description": "Enter feature description",
|
"enter-feature-description": "Enter feature description",
|
||||||
"enter-interval": "Enter interval",
|
"enter-interval": "Enter interval",
|
||||||
@ -1141,6 +1137,7 @@
|
|||||||
"webhook-listing-message": "The webhook allows external services to be notified of the metadata change events happening in your organization through APIs. Register callback URLs with webhook integration to receive metadata event notifications. You can add, list, update, and delete webhooks.",
|
"webhook-listing-message": "The webhook allows external services to be notified of the metadata change events happening in your organization through APIs. Register callback URLs with webhook integration to receive metadata event notifications. You can add, list, update, and delete webhooks.",
|
||||||
"webhook-type-listing-message": "Provide timely updates to the producers and consumers of metadata via {{webhookType}} notifications. Use {{webhookType}} webhooks to send notifications regarding the metadata change events in your organization through APIs. You can add, list, update, and delete these webhooks.",
|
"webhook-type-listing-message": "Provide timely updates to the producers and consumers of metadata via {{webhookType}} notifications. Use {{webhookType}} webhooks to send notifications regarding the metadata change events in your organization through APIs. You can add, list, update, and delete these webhooks.",
|
||||||
"welcome-to-om": "Welcome to OpenMetadata!",
|
"welcome-to-om": "Welcome to OpenMetadata!",
|
||||||
|
"welcome-to-open-metadata": "Welcome to OpenMetadata!",
|
||||||
"would-like-to-start-adding-some": "Would like to start adding some?",
|
"would-like-to-start-adding-some": "Would like to start adding some?",
|
||||||
"write-your-announcement-lowercase": "write your announcement",
|
"write-your-announcement-lowercase": "write your announcement",
|
||||||
"write-your-description": "Write your description",
|
"write-your-description": "Write your description",
|
||||||
@ -1153,10 +1150,7 @@
|
|||||||
"connection-tested-successfully": "Connection tested successfully",
|
"connection-tested-successfully": "Connection tested successfully",
|
||||||
"create-entity-error": "Error while creating {{entity}}!",
|
"create-entity-error": "Error while creating {{entity}}!",
|
||||||
"create-entity-success": "{{entity}} created successfully.",
|
"create-entity-success": "{{entity}} created successfully.",
|
||||||
"create-tag-category-error": "Error while creating tag category.",
|
"delete-entity-error": "Error while deleting {{entity}}.",
|
||||||
"create-tag-error": "Error while creating tag.",
|
|
||||||
"delete-tag-category-error": "Error while deleting tag category.",
|
|
||||||
"delete-tag-error": "Error while deleting tag.",
|
|
||||||
"deploy-entity-error": "Error while deploying {{entity}}!",
|
"deploy-entity-error": "Error while deploying {{entity}}!",
|
||||||
"email-confirmation": "Please confirm your email, confirmation has been sent to your email",
|
"email-confirmation": "Please confirm your email, confirmation has been sent to your email",
|
||||||
"email-found": "User with the given email address already exists!",
|
"email-found": "User with the given email address already exists!",
|
||||||
@ -1170,8 +1164,6 @@
|
|||||||
"error-while-renewing-id-token-with-message": "Error while renewing id token from Auth0 SSO: {{message}}",
|
"error-while-renewing-id-token-with-message": "Error while renewing id token from Auth0 SSO: {{message}}",
|
||||||
"feed-post-error": "Error while posting the message!",
|
"feed-post-error": "Error while posting the message!",
|
||||||
"fetch-entity-permissions-error": "Unable to get permission for {{entity}}.",
|
"fetch-entity-permissions-error": "Unable to get permission for {{entity}}.",
|
||||||
"fetch-suggestions-error": "Error while fetching suggestions!",
|
|
||||||
"fetch-tags-category-error": "Error while fetching tags category!",
|
|
||||||
"fetch-updated-conversation-error": "Error while fetching updated conversation!",
|
"fetch-updated-conversation-error": "Error while fetching updated conversation!",
|
||||||
"forgot-password-email-error": "There is some issue in sending the mail. Please contact your Administrator.",
|
"forgot-password-email-error": "There is some issue in sending the mail. Please contact your Administrator.",
|
||||||
"ingestion-workflow-operation-error": "Error while {{operation}} ingestion workflow {{displayName}}",
|
"ingestion-workflow-operation-error": "Error while {{operation}} ingestion workflow {{displayName}}",
|
||||||
@ -1197,6 +1189,5 @@
|
|||||||
"unexpected-response": "Unexpected response from server.",
|
"unexpected-response": "Unexpected response from server.",
|
||||||
"update-entity-success": "{{entity}} updated successfully.",
|
"update-entity-success": "{{entity}} updated successfully.",
|
||||||
"you-have-not-action-anything-yet": "You have not {{action}} anything yet."
|
"you-have-not-action-anything-yet": "You have not {{action}} anything yet."
|
||||||
},
|
}
|
||||||
"url": {}
|
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -87,7 +87,7 @@ describe('Test Roles Details Page', () => {
|
|||||||
|
|
||||||
const policiesTab = await screen.findByText('label.policy-plural');
|
const policiesTab = await screen.findByText('label.policy-plural');
|
||||||
const teamsTab = await screen.findByText('label.team-plural');
|
const teamsTab = await screen.findByText('label.team-plural');
|
||||||
const usersTab = await screen.findByText('label.users');
|
const usersTab = await screen.findByText('label.user-plural');
|
||||||
|
|
||||||
expect(container).toBeInTheDocument();
|
expect(container).toBeInTheDocument();
|
||||||
|
|
||||||
|
@ -335,7 +335,7 @@ const RolesDetailPage = () => {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<TabPane key="users" tab={t('label.users')}>
|
<TabPane key="users" tab={t('label.user-plural')}>
|
||||||
<RolesDetailPageList
|
<RolesDetailPageList
|
||||||
hasAccess={rolePermission.EditAll}
|
hasAccess={rolePermission.EditAll}
|
||||||
list={role.users ?? []}
|
list={role.users ?? []}
|
||||||
|
@ -209,7 +209,9 @@ const TagsPage = () => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errMsg = getErrorText(
|
const errMsg = getErrorText(
|
||||||
error as AxiosError,
|
error as AxiosError,
|
||||||
t('server.fetch-tags-category-error')
|
t('server.entity-fetch-error', {
|
||||||
|
entity: t('label.tag-category-lowercase'),
|
||||||
|
})
|
||||||
);
|
);
|
||||||
showErrorToast(errMsg);
|
showErrorToast(errMsg);
|
||||||
setError(errMsg);
|
setError(errMsg);
|
||||||
@ -248,7 +250,9 @@ const TagsPage = () => {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
const errMsg = getErrorText(
|
const errMsg = getErrorText(
|
||||||
err as AxiosError,
|
err as AxiosError,
|
||||||
t('server.fetch-tags-category-error')
|
t('server.entity-fetch-error', {
|
||||||
|
entity: t('label.tag-category-lowercase'),
|
||||||
|
})
|
||||||
);
|
);
|
||||||
showErrorToast(errMsg);
|
showErrorToast(errMsg);
|
||||||
setError(errMsg);
|
setError(errMsg);
|
||||||
@ -310,7 +314,12 @@ const TagsPage = () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((err: AxiosError) => {
|
.catch((err: AxiosError) => {
|
||||||
showErrorToast(err, t('server.create-tag-category-error'));
|
showErrorToast(
|
||||||
|
err,
|
||||||
|
t('server.create-entity-error', {
|
||||||
|
entity: t('label.tag-category-lowercase'),
|
||||||
|
})
|
||||||
|
);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
setIsAddingClassification(false);
|
setIsAddingClassification(false);
|
||||||
@ -361,11 +370,20 @@ const TagsPage = () => {
|
|||||||
return updatedClassification;
|
return updatedClassification;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
showErrorToast(t('server.delete-tag-category-error'));
|
showErrorToast(
|
||||||
|
t('server.delete-entity-error', {
|
||||||
|
entity: t('label.tag-category-lowercase'),
|
||||||
|
})
|
||||||
|
);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((err: AxiosError) => {
|
.catch((err: AxiosError) => {
|
||||||
showErrorToast(err, t('server.delete-tag-category-error'));
|
showErrorToast(
|
||||||
|
err,
|
||||||
|
t('server.delete-entity-error', {
|
||||||
|
entity: t('label.tag-category-lowercase'),
|
||||||
|
})
|
||||||
|
);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
setDeleteTags({ data: undefined, state: false });
|
setDeleteTags({ data: undefined, state: false });
|
||||||
@ -390,11 +408,18 @@ const TagsPage = () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
showErrorToast(t('server.delete-tag-error'));
|
showErrorToast(
|
||||||
|
t('server.delete-entity-error', {
|
||||||
|
entity: t('label.tag-lowercase'),
|
||||||
|
})
|
||||||
|
);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((err: AxiosError) => {
|
.catch((err: AxiosError) => {
|
||||||
showErrorToast(err, t('server.delete-tag-error'));
|
showErrorToast(
|
||||||
|
err,
|
||||||
|
t('server.delete-entity-error', { entity: t('label.tag-lowercase') })
|
||||||
|
);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
setDeleteTags({ data: undefined, state: false });
|
setDeleteTags({ data: undefined, state: false });
|
||||||
@ -513,7 +538,12 @@ const TagsPage = () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((err: AxiosError) => {
|
.catch((err: AxiosError) => {
|
||||||
showErrorToast(err, t('label.create-tag-error'));
|
showErrorToast(
|
||||||
|
err,
|
||||||
|
t('label.create-entity-error', {
|
||||||
|
entity: t('label.tag-lowercase'),
|
||||||
|
})
|
||||||
|
);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
setIsAddingTag(false);
|
setIsAddingTag(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user