mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
🌐 Add proper translation for container actions
This commit is contained in:
@@ -47,10 +47,22 @@
|
|||||||
"title": "Add to Homarr"
|
"title": "Add to Homarr"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"messages": {
|
"actions": {
|
||||||
"successfullyExecuted": {
|
"start": {
|
||||||
"title": "Container {{containerName}} {{action}}ed",
|
"start": "Starting",
|
||||||
"message": "Your container was successfully {{action}}ed"
|
"end": "Started"
|
||||||
|
},
|
||||||
|
"stop": {
|
||||||
|
"start": "Stopping",
|
||||||
|
"end": "Stopped"
|
||||||
|
},
|
||||||
|
"restart": {
|
||||||
|
"start": "Restarting",
|
||||||
|
"end": "Restarted"
|
||||||
|
},
|
||||||
|
"remove": {
|
||||||
|
"start": "Removing",
|
||||||
|
"end": "Removed"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ function sendDockerCommand(
|
|||||||
showNotification({
|
showNotification({
|
||||||
id: containerId,
|
id: containerId,
|
||||||
loading: true,
|
loading: true,
|
||||||
title: `${action}ing container ${containerName}`,
|
title: `${t(`actions.${action}.start`)} ${containerName}`,
|
||||||
message: undefined,
|
message: undefined,
|
||||||
autoClose: false,
|
autoClose: false,
|
||||||
disallowClose: true,
|
disallowClose: true,
|
||||||
@@ -41,8 +41,8 @@ function sendDockerCommand(
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
updateNotification({
|
updateNotification({
|
||||||
id: containerId,
|
id: containerId,
|
||||||
title: t('messages.successfullyExecuted.message', { containerName, action }),
|
title: containerName,
|
||||||
message: t('messages.successfullyExecuted.message', { action }),
|
message: `${t(`actions.${action}.end`)} ${containerName}`,
|
||||||
icon: <IconCheck />,
|
icon: <IconCheck />,
|
||||||
autoClose: 2000,
|
autoClose: 2000,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user