From 5a48e98aea4e271f9fa4899a71ab7cd464dfe2b5 Mon Sep 17 00:00:00 2001 From: Akibur Rahman <48094649+akib22@users.noreply.github.com> Date: Sat, 11 Oct 2025 19:51:04 +0600 Subject: [PATCH] Improve i18n support for area deletion message (#645) * Add missing Bengali translations - ordered the translation keys same as en.js file to check the difference easily - improve word selection and sentence structure Issue: #627 * Allow string ids for relationships in json import (#636) * Fix import and export failing on non string column defaults for oracle (#637) * Fix non-string defaults in dbml export * Fix type self-referencing * Add translations for thai (#639) * add translations for thai * Add Thai language to i18n support --------- Co-authored-by: Aditya Satish Karwa * Fix patch when gist gets deleted #641 (#643) * Fix translation message formatting in AreasContext Issue: #644 --------- Co-authored-by: 1ilit <1ilit@proton.me> Co-authored-by: Aditya Karwa <152879478+AdityaK-github@users.noreply.github.com> Co-authored-by: Aditya Satish Karwa --- src/context/AreasContext.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/context/AreasContext.jsx b/src/context/AreasContext.jsx index 4e5670d..2e18c1c 100644 --- a/src/context/AreasContext.jsx +++ b/src/context/AreasContext.jsx @@ -1,8 +1,8 @@ -import { createContext, useState } from "react"; -import { Action, ObjectType, defaultBlue } from "../data/constants"; -import { useUndoRedo, useTransform, useSelect } from "../hooks"; import { Toast } from "@douyinfe/semi-ui"; +import { createContext, useState } from "react"; import { useTranslation } from "react-i18next"; +import { Action, ObjectType, defaultBlue } from "../data/constants"; +import { useSelect, useTransform, useUndoRedo } from "../hooks"; export const AreasContext = createContext(null); @@ -59,7 +59,7 @@ export default function AreasContextProvider({ children }) { action: Action.DELETE, element: ObjectType.AREA, data: areas[id], - message: t("delete_area", areas[id].name), + message: t("delete_area", { areaName: areas[id].name }), }, ]); setRedoStack([]);