Improved Chinese translation, fixed some ui labels (#11283)

Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
This commit is contained in:
Louie 2023-04-26 13:44:06 +08:00 committed by GitHub
parent 9ebc0cd5e4
commit b1cb6f62c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 1165 additions and 1157 deletions

View File

@ -144,7 +144,9 @@ const OwnerInsight: FC<Props> = ({ chartFilter, kpi, selectedDays }) => {
{t('label.data-insight-owner-summary')}
</Typography.Title>
<Typography.Text className="data-insight-label-text">
{t('message.field-insight', { field: 'owner' })}
{t('message.field-insight', {
field: t('label.owner'),
})}
</Typography.Text>
</>
}>

View File

@ -124,7 +124,9 @@ const TierInsight: FC<Props> = ({ chartFilter, selectedDays }) => {
{t('label.data-insight-tier-summary')}
</Typography.Title>
<Typography.Text className="data-insight-label-text">
{t('message.field-insight', { field: 'tier' })}
{t('message.field-insight', {
field: t('label.tier'),
})}
</Typography.Text>
</>
}>

View File

@ -274,9 +274,9 @@ const Appbar: React.FC = (): JSX.Element => {
</Typography.Paragraph>
</Link>
<hr className="tw-my-1.5" />
{roles.length > 0 ? getUsersRoles(roles, 'Roles') : null}
{roles.length > 0 ? getUsersRoles(roles, t('label.role-plural')) : null}
{inheritedRoles.length > 0
? getUsersRoles(inheritedRoles, 'Inherited Roles')
? getUsersRoles(inheritedRoles, t('label.inherited-role-plural'))
: null}
{teams.length > 0 ? (
<div>

View File

@ -156,13 +156,15 @@ export const ENTITIES_SUMMARY_LIST = [
},
{
label: i18n.t('label.data-asset-plural-with-field', {
field: 'description',
field: i18n.t('label.description'),
}),
latest: 0,
id: DataInsightChartType.PercentageOfEntitiesWithDescriptionByType,
},
{
label: i18n.t('label.data-asset-plural-with-field', { field: 'owners' }),
label: i18n.t('label.data-asset-plural-with-field', {
field: i18n.t('label.owner-plural'),
}),
latest: 0,
id: DataInsightChartType.PercentageOfEntitiesWithOwnerByType,
},

View File

@ -118,7 +118,7 @@ const KPIList = () => {
),
},
{
title: 'Actions',
title: t('label.action-plural'),
dataIndex: 'actions',
width: '80px',
key: 'actions',

View File

@ -288,7 +288,9 @@ const RuleForm: FC<RuleFormProps> = ({ ruleData, setRuleData }) => {
treeCheckable
className="w-full"
data-testid="operations"
placeholder="Select Operations"
placeholder={t('label.select-field', {
field: t('label.operation-plural'),
})}
showCheckedStrategy={TreeSelect.SHOW_PARENT}
treeData={operationOptions}
onChange={(values: Operation[]) => {

View File

@ -287,7 +287,7 @@ const TestSuiteDetailsPage = () => {
const extraInfo: Array<ExtraInfo> = useMemo(
() => [
{
key: t('label.owner'),
key: 'owner',
value:
testOwner?.type === 'team'
? getTeamAndUserDetailsPath(testOwner?.name || '')

View File

@ -294,7 +294,7 @@ export const getIngestionButtonText = (
? t('label.deploy-search-index-pipeline')
: t('label.add-workflow-ingestion', {
workflow: startCase(
pipelineType ? pipelineType : PipelineType.Metadata
pipelineType ? pipelineType : t(`label.${PipelineType.Metadata}`)
),
});
}