Files
shumai/packages/webui/paraglide/messages/delete_model_confirmation.js
T
Yiling-J c3ef769f51 feat(provider): optimize provider and model configuration management (#377)
* feat(provider): optimize provider and model configuration management

* style(provider): use default tabs variant in provider settings dialog

* style(provider): make tabs list full width

* feat(provider): make model card row clickable and remove pencil edit icon

* feat(settings): persist active settings tab in url hash

* feat(agent): add search box and alphabetical sorting for provider and model selectors

* refactor(providers): remove frontend pagination and display all models in scrollable list

* fix(providers): address code review findings for model editing, i18n, and api protocol propagation
2026-09-03 15:16:16 +08:00

29 lines
1.4 KiB
JavaScript
Generated

/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{ name: NonNullable<unknown> }} Delete_Model_ConfirmationInputs */
const en_delete_model_confirmation = /** @type {(inputs: Delete_Model_ConfirmationInputs) => LocalizedString} */ (i) => {
return /** @type {LocalizedString} */ (`This action cannot be undone. This will permanently delete the model "${i?.name}".`)
};
const zh_delete_model_confirmation = /** @type {(inputs: Delete_Model_ConfirmationInputs) => LocalizedString} */ (i) => {
return /** @type {LocalizedString} */ (`此操作无法撤销。这将永久删除模型 "${i?.name}"。`)
};
/**
* | output |
* | --- |
* | "This action cannot be undone. This will permanently delete the model \"{name}\"." |
*
* @param {Delete_Model_ConfirmationInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const delete_model_confirmation = /** @type {((inputs: Delete_Model_ConfirmationInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Delete_Model_ConfirmationInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_delete_model_confirmation(inputs)
return zh_delete_model_confirmation(inputs)
});