mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 19:39:27 +00:00
* feat(chat): support markups, attachments, and timestamps in agent 1-to-1 chat * feat(chat): improve message card layout with inline badges and integrated assets * fix(chat): enable image attachment thumbnails in 1-to-1 chat cards * fix(chat): address code review feedback on input state, mentions, i18n, and session deletion * fix(chat): replace ring with border color on selected message card
29 lines
1.1 KiB
JavaScript
Generated
29 lines
1.1 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Delete_SessionInputs */
|
|
|
|
const en_delete_session = /** @type {(inputs: Delete_SessionInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Delete Session`)
|
|
};
|
|
|
|
const zh_delete_session = /** @type {(inputs: Delete_SessionInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`删除会话`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Delete Session" |
|
|
*
|
|
* @param {Delete_SessionInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const delete_session = /** @type {((inputs?: Delete_SessionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Delete_SessionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_delete_session(inputs)
|
|
return zh_delete_session(inputs)
|
|
}); |