chore: update i18n for shortcut filter (#270)

* chore: resources i18n

* chore: shortcut-list i18n

* chore: resources i18n

* chore: resources i18n

* chore: resources i18n
This commit is contained in:
winwin2011
2022-10-08 22:27:23 +08:00
committed by GitHub
parent a323689ee6
commit 4ada7dce77
6 changed files with 61 additions and 23 deletions

View File

@ -104,13 +104,13 @@ const ResourcesDialog: React.FC<Props> = (props: Props) => {
};
const handleDeleteResourceBtnClick = (resource: Resource) => {
let warningText = "Are you sure to delete this resource? THIS ACTION IS IRREVERSIABLE.❗️";
let warningText = t("resources.warning-text");
if (resource.linkedMemoAmount > 0) {
warningText = warningText + `\nLinked memo amount: ${resource.linkedMemoAmount}`;
warningText = warningText + `\n${t("resources.linked-amount")}: ${resource.linkedMemoAmount}`;
}
showCommonDialog({
title: `Delete Resource`,
title: t("resources.delete-resource"),
content: warningText,
style: "warning",
onConfirm: async () => {