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 <aditya@adityas-mac-5.local>

* 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 <aditya@adityas-mac-5.local>
This commit is contained in:
Akibur Rahman
2025-10-11 19:51:04 +06:00
committed by GitHub
parent 75e3756f1e
commit 5a48e98aea

View File

@@ -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 { Toast } from "@douyinfe/semi-ui";
import { createContext, useState } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { Action, ObjectType, defaultBlue } from "../data/constants";
import { useSelect, useTransform, useUndoRedo } from "../hooks";
export const AreasContext = createContext(null); export const AreasContext = createContext(null);
@@ -59,7 +59,7 @@ export default function AreasContextProvider({ children }) {
action: Action.DELETE, action: Action.DELETE,
element: ObjectType.AREA, element: ObjectType.AREA,
data: areas[id], data: areas[id],
message: t("delete_area", areas[id].name), message: t("delete_area", { areaName: areas[id].name }),
}, },
]); ]);
setRedoStack([]); setRedoStack([]);