From 5b52739587b98cb39a6768df7c986c6b11948abc Mon Sep 17 00:00:00 2001 From: yyypearl Date: Sat, 31 Aug 2024 17:06:42 +0900 Subject: [PATCH] =?UTF-8?q?feat(#138):=20=ED=88=AC=EB=91=90=20=ED=86=A0?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EB=A9=94=EC=84=B8=EC=A7=80=20=EB=B2=88?= =?UTF-8?q?=EC=97=AD=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/Todo.tsx | 3 ++- src/data/toastMessagesData.ts | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/home/Todo.tsx b/src/components/home/Todo.tsx index ed40b11..c696e93 100644 --- a/src/components/home/Todo.tsx +++ b/src/components/home/Todo.tsx @@ -16,6 +16,7 @@ import { LanguageKeys, noTodoMessage, } from "@/data/todoData"; +import { addTodoToast } from "@/data/toastMessagesData"; interface Todo { todoId: number; @@ -281,7 +282,7 @@ const Todo = () => { )} {showToast && ( setShowToast(false)} diff --git a/src/data/toastMessagesData.ts b/src/data/toastMessagesData.ts index 1ec7ce4..b4e59b2 100644 --- a/src/data/toastMessagesData.ts +++ b/src/data/toastMessagesData.ts @@ -6,3 +6,12 @@ export const ToastMessages = { vi: "Đã nộp", pi: "Nai-submit na", }; + +export const addTodoToast = { + ko: "할 일이 추가되었어요!", + en: "A task has been added!", + zh: "任务已添加!", + ja: "タスクが追加されました!", + vi: "Một công việc đã được thêm vào!", + pi: "Mayroong bagong gawain na idinagdag!", +};