Skip to content

Commit 2f80010

Browse files
authored
fix: changed button labels (#2142)
1 parent 48798f7 commit 2f80010

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/ai-dial-admin/src/components/Common/FileManager/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const toolbarOptionLabels = [
7676
},
7777
{
7878
key: 'uploadFiles',
79-
label: FileManagerI18nKey.File,
79+
label: FileManagerI18nKey.Files,
8080
icon: null,
8181
},
8282
];
@@ -127,7 +127,7 @@ export const getTreeOptions = (
127127
export const getToolbarOptions = (t: (key: string) => string) => ({
128128
showHiddenFilesToggle: false,
129129
newActions: getActionLabelsWithIcon(toolbarOptionLabels, t),
130-
newButtonLabel: t(ButtonsI18nKey.Create),
130+
newButtonLabel: t(ButtonsI18nKey.Add),
131131
});
132132

133133
export const getBulkActionsToolbarOptions = (t: (key: string) => string) => ({

apps/ai-dial-admin/src/constants/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ export enum FileManagerI18nKey {
13091309
AddChild = 'FileManager.AddChild',
13101310
Rename = 'FileManager.Rename',
13111311
Move = 'FileManager.Move',
1312-
File = 'FileManager.File',
1312+
Files = 'FileManager.Files',
13131313
Folder = 'FileManager.Folder',
13141314
EnterFolderName = 'FileManager.EnterFolderName',
13151315
NameExists = 'FileManager.NameExists',

apps/ai-dial-admin/src/locales/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ export default {
13301330
AddSibling: 'Add sibling',
13311331
Rename: 'Rename',
13321332
Move: 'Move to',
1333-
File: 'File',
1333+
Files: 'Files',
13341334
Folder: 'Folder',
13351335
EnterFolderName: 'Please enter a folder name',
13361336
NameExists: 'A folder with this name already exists in this location',

0 commit comments

Comments
 (0)