Final Localization (#10288)

This commit is contained in:
Ashish Gupta 2023-02-23 11:02:15 +05:30 committed by GitHub
parent e9f1cb1074
commit 0ba1882bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 7 deletions

View File

@ -171,12 +171,16 @@ const NavBar = ({
let path: string;
switch (type) {
case 'Task':
body = `${createdBy} assigned you a new task.`;
body = t('message.user-assign-new-task', {
user: createdBy,
});
path = getTaskDetailPath(toString(id)).pathname;
break;
case 'Conversation':
body = `${createdBy} mentioned you in a comment.`;
body = t('message.user-mentioned-in-comment', {
user: createdBy,
});
path = prepareFeedLink(entityType as string, entityFQN as string);
}
const notification = new Notification('Notification From OpenMetadata', {

View File

@ -1144,6 +1144,8 @@
"unable-to-error-elasticsearch": "We are unable to {{error}}} Elasticsearch for entity indexes.",
"usage-ingestion-description": "Usage ingestion can be configured and deployed after a metadata ingestion has been set up. The usage ingestion workflow obtains the query log and table creation details from the underlying database and feeds it to OpenMetadata. Metadata and usage can have only one pipeline for a database service. Define the Query Log Duration (in days), Stage File Location, and Result Limit to start.",
"use-fqn-for-filtering-message": "Regex will be applied on fully qualified name (e.g service_name.db_name.schema_name.table_name) instead of raw name (e.g. table_name).",
"user-assign-new-task": "{{user}} assigned you a new task.",
"user-mentioned-in-comment": "{{user}} mentioned you in a comment.",
"user-verified-successfully": "User Verified Successfully",
"valid-url-endpoint": "Endpoints should be valid URL",
"view-deleted-teams": "View All the Deleted Teams, which come under this Team.",

View File

@ -174,7 +174,7 @@ const DatabaseDetails: FunctionComponent = () => {
const tabs = [
{
name: 'Schemas',
name: t('label.schema-plural'),
icon: {
alt: 'schemas',
name: 'schema-grey',
@ -186,7 +186,7 @@ const DatabaseDetails: FunctionComponent = () => {
position: 1,
},
{
name: 'Activity Feeds',
name: t('label.activity-feed-plural'),
icon: {
alt: 'activity_feed',
name: 'activity_feed',

View File

@ -53,11 +53,19 @@ const AddTeamForm: React.FC<AddTeamFormType> = ({
const validationMessages = useMemo(
() => ({
required: '${label} is required',
required: t('message.field-text-is-required', {
fieldText: '${label}',
}),
string: {
range: '${label} must be between ${min} and ${max}.',
range: t('message.entity-size-in-between', {
entity: '${label}',
min: '${min}',
max: '${max}',
}),
},
whitespace: '${label} is required',
whitespace: t('message.entity-not-contain-whitespace', {
entity: '${label}',
}),
}),
[]
);