WEb: Files: Changed translation keys.

This commit is contained in:
Tatiana Lopaeva 2022-03-10 17:45:13 +03:00
parent afb0510fd6
commit d793b099ff
4 changed files with 12 additions and 10 deletions

View File

@ -67,7 +67,7 @@ const PureThirdPartyMoveContainer = ({
deleteAfter,
isCopy,
translations: {
copy: t("Translations:CopyOperation"),
copy: t("Common:CopyOperation"),
move: t("Translations:MoveToOperation"),
},
};

View File

@ -120,7 +120,7 @@ const OperationsPanelComponent = (props) => {
isCopy,
folderTitle,
translations: {
copy: t("Translations:CopyOperation"),
copy: t("Common:CopyOperation"),
move: t("Translations:MoveToOperation"),
},
};
@ -190,9 +190,11 @@ const OperationsPanelComponent = (props) => {
);
};
const OperationsPanel = withTranslation(["OperationsPanel", "Translations"])(
OperationsPanelComponent
);
const OperationsPanel = withTranslation([
"OperationsPanel",
"Translations",
"Common",
])(OperationsPanelComponent);
export default inject(
(

View File

@ -162,7 +162,7 @@ const SectionBodyContent = (props) => {
const onMoveTo = (destFolderId, title, providerKey) => {
const id = isNaN(+destFolderId) ? destFolderId : +destFolderId;
moveDragItems(id, title, providerKey, {
copy: t("Translations:CopyOperation"),
copy: t("Common:CopyOperation"),
move: t("Translations:MoveToOperation"),
}); //TODO: then catch
};

View File

@ -238,7 +238,7 @@ class ContextOptionsStore {
onDuplicate = (item, t) => {
this.filesActionsStore
.duplicateAction(item, t("Translations:CopyOperation"))
.duplicateAction(item, t("Common:CopyOperation"))
.catch((err) => toastr.error(err));
};
@ -398,7 +398,7 @@ class ContextOptionsStore {
},
{
key: "copy",
label: t("Duplicate"),
label: t("Common:Duplicate"),
onClick: () => this.onDuplicate(item, t),
disabled: false,
},
@ -422,7 +422,7 @@ class ContextOptionsStore {
},
{
key: "copy",
label: t("Duplicate"),
label: t("Common:Duplicate"),
icon: "/static/images/copy.react.svg",
onClick: () => this.onDuplicate(item, t),
disabled: false,
@ -564,7 +564,7 @@ class ContextOptionsStore {
...moveActions,
{
key: "restore",
label: t("Translations:Restore"),
label: t("Common:Restore"),
icon: "images/move.react.svg",
onClick: this.onMoveAction,
disabled: false,