mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 21:44:27 +00:00
* feat(settings): redesign image and video generation settings with tabs, card switch, and 2-box model selector * fix(settings): remove model type checkmark, remove search inputs, and fix select box scrolling in add model dialog * refactor(settings): remove display name input from add model dialog * feat(media-generation): add gemini-omni-1.1-flash as default video model via google interactions api * feat(media-generation): forward video parameters to gemini-omni-1.1-flash via system instructions and prompt
29 lines
1.2 KiB
JavaScript
Generated
29 lines
1.2 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{ envKey: NonNullable<unknown> }} Default_Env_Var_DescInputs */
|
|
|
|
const en_default_env_var_desc = /** @type {(inputs: Default_Env_Var_DescInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`Default: ${i?.envKey}`)
|
|
};
|
|
|
|
const zh_default_env_var_desc = /** @type {(inputs: Default_Env_Var_DescInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`默认:${i?.envKey}`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Default: {envKey}" |
|
|
*
|
|
* @param {Default_Env_Var_DescInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const default_env_var_desc = /** @type {((inputs: Default_Env_Var_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Default_Env_Var_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_default_env_var_desc(inputs)
|
|
return zh_default_env_var_desc(inputs)
|
|
}); |