diff options
| author | INOUE Daisuke <inoue.daisuke@gmail.com> | 2025-04-02 01:49:11 +0900 | 
|---|---|---|
| committer | INOUE Daisuke <inoue.daisuke@gmail.com> | 2025-04-08 22:24:46 +0900 | 
| commit | 1fd6a7d2249fdf6ba5ca9ced6ea43348ebe0941d (patch) | |
| tree | ea1344af0d6259ce70c99f556f26a86d29d9440f /src/routes | |
| parent | b56f838718386e611af71a74b479a331b832da79 (diff) | |
rename translation keys as filestructure
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/frontend.ts | 2 | ||||
| -rw-r--r-- | src/routes/magicLink.ts | 8 | 
2 files changed, 5 insertions, 5 deletions
diff --git a/src/routes/frontend.ts b/src/routes/frontend.ts index 387cd65..16a44c8 100644 --- a/src/routes/frontend.ts +++ b/src/routes/frontend.ts @@ -71,7 +71,7 @@ router.get("/new/:magicLinkToken", async (req: Request, res: Response) => {              ...frontendConfig(res),              message: {                  type: "danger", -                text: i18next.t("magiclink-invalid"), +                text: i18next.t("routes.magiclink-invalid"),              },          });      } diff --git a/src/routes/magicLink.ts b/src/routes/magicLink.ts index 5eb424b..14312c1 100644 --- a/src/routes/magicLink.ts +++ b/src/routes/magicLink.ts @@ -17,7 +17,7 @@ router.post("/magic-link/event/create", async (req: Request, res: Response) => {              ...frontendConfig(res),              message: {                  type: "danger", -                text: i18next.t("ml.provideemail"), +                text: i18next.t("routes.magiclink.provideemail"),              },          });          return; @@ -32,7 +32,7 @@ router.post("/magic-link/event/create", async (req: Request, res: Response) => {              ...frontendConfig(res),              message: {                  type: "success", -                text: i18next.t("ml.thanks"), +                text: i18next.t("routes.magiclink.thanks"),              },          });          return; @@ -52,7 +52,7 @@ router.post("/magic-link/event/create", async (req: Request, res: Response) => {      sendEmailFromTemplate(          email,          "", -        i18next.t("ml.mailsubject"), +        i18next.t("routes.magiclink.mailsubject"),          "createEventMagicLink",          {              token, @@ -66,7 +66,7 @@ router.post("/magic-link/event/create", async (req: Request, res: Response) => {          ...frontendConfig(res),          message: {              type: "success", -            text: i18next.t("ml.thanks"), +            text: i18next.t("routes.magiclink.thanks"),          },      });  });  | 
