feat(localization): update and enhance localization files for multiple languages
- Updated localization files for various languages, including English, German, Spanish, Portuguese, and Chinese, to ensure consistency and accuracy across the application. - Added new keys and updated existing ones to support recent UI changes and features, particularly in project views, task lists, and admin center settings. - Enhanced the structure of localization files to improve maintainability and facilitate future updates. - Implemented performance optimizations in the frontend components to better handle localization data.
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
import { Button, Collapse, CollapseProps, Flex, Skeleton, Tooltip, Typography } from '@/shared/antd-imports';
|
||||
import {
|
||||
Button,
|
||||
Collapse,
|
||||
CollapseProps,
|
||||
Flex,
|
||||
Skeleton,
|
||||
Tooltip,
|
||||
Typography,
|
||||
} from '@/shared/antd-imports';
|
||||
import React, { useEffect, useState, useRef } from 'react';
|
||||
import { ReloadOutlined } from '@/shared/antd-imports';
|
||||
import DescriptionEditor from './description-editor';
|
||||
@@ -150,7 +158,7 @@ const TaskDrawerInfoTab = ({ t }: TaskDrawerInfoTabProps) => {
|
||||
label: <Typography.Text strong>{t('taskInfoTab.dependencies.title')}</Typography.Text>,
|
||||
children: (
|
||||
<DependenciesTable
|
||||
task={(taskFormViewModel?.task as ITaskViewModel) || {} as ITaskViewModel}
|
||||
task={(taskFormViewModel?.task as ITaskViewModel) || ({} as ITaskViewModel)}
|
||||
t={t}
|
||||
taskDependencies={taskDependencies}
|
||||
loadingTaskDependencies={loadingTaskDependencies}
|
||||
@@ -216,14 +224,16 @@ const TaskDrawerInfoTab = ({ t }: TaskDrawerInfoTabProps) => {
|
||||
const res = await taskDependenciesApiService.getTaskDependencies(selectedTaskId);
|
||||
if (res.done) {
|
||||
setTaskDependencies(res.body);
|
||||
|
||||
|
||||
// Update Redux state with the current dependency status
|
||||
dispatch(updateTaskCounts({
|
||||
taskId: selectedTaskId,
|
||||
counts: {
|
||||
has_dependencies: res.body.length > 0
|
||||
}
|
||||
}));
|
||||
dispatch(
|
||||
updateTaskCounts({
|
||||
taskId: selectedTaskId,
|
||||
counts: {
|
||||
has_dependencies: res.body.length > 0,
|
||||
},
|
||||
})
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error('Error fetching task dependencies:', error);
|
||||
@@ -239,14 +249,16 @@ const TaskDrawerInfoTab = ({ t }: TaskDrawerInfoTabProps) => {
|
||||
const res = await taskAttachmentsApiService.getTaskAttachments(selectedTaskId);
|
||||
if (res.done) {
|
||||
setTaskAttachments(res.body);
|
||||
|
||||
|
||||
// Update Redux state with the current attachment count
|
||||
dispatch(updateTaskCounts({
|
||||
taskId: selectedTaskId,
|
||||
counts: {
|
||||
attachments_count: res.body.length
|
||||
}
|
||||
}));
|
||||
dispatch(
|
||||
updateTaskCounts({
|
||||
taskId: selectedTaskId,
|
||||
counts: {
|
||||
attachments_count: res.body.length,
|
||||
},
|
||||
})
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error('Error fetching task attachments:', error);
|
||||
|
||||
Reference in New Issue
Block a user