mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 18:27:15 +00:00
29 lines
1.4 KiB
JavaScript
Generated
29 lines
1.4 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{ type: NonNullable<unknown> }} Delete_Confirm_DescriptionInputs */
|
|
|
|
const en_delete_confirm_description = /** @type {(inputs: Delete_Confirm_DescriptionInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`Are you sure you want to delete this ${i?.type}? This action cannot be undone.`)
|
|
};
|
|
|
|
const zh_delete_confirm_description = /** @type {(inputs: Delete_Confirm_DescriptionInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`确定要删除此${i?.type}吗?此操作无法撤销。`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Are you sure you want to delete this {type}? This action cannot be undone." |
|
|
*
|
|
* @param {Delete_Confirm_DescriptionInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const delete_confirm_description = /** @type {((inputs: Delete_Confirm_DescriptionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Delete_Confirm_DescriptionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_delete_confirm_description(inputs)
|
|
return zh_delete_confirm_description(inputs)
|
|
}); |