mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 23:24:21 +00:00
* 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
29 lines
1.3 KiB
JavaScript
Generated
29 lines
1.3 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Search_Models_PlaceholderInputs */
|
|
|
|
const en_search_models_placeholder = /** @type {(inputs: Search_Models_PlaceholderInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Search models by ID or name...`)
|
|
};
|
|
|
|
const zh_search_models_placeholder = /** @type {(inputs: Search_Models_PlaceholderInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`按 ID 或名称搜索模型...`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Search models by ID or name..." |
|
|
*
|
|
* @param {Search_Models_PlaceholderInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const search_models_placeholder = /** @type {((inputs?: Search_Models_PlaceholderInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Search_Models_PlaceholderInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_search_models_placeholder(inputs)
|
|
return zh_search_models_placeholder(inputs)
|
|
}); |