mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 11:58:20 +00:00
29 lines
1.5 KiB
JavaScript
Generated
29 lines
1.5 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Network_Sandbox_DescriptionInputs */
|
|
|
|
const en_network_sandbox_description = /** @type {(inputs: Network_Sandbox_DescriptionInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Configure allowed domains for the sandboxed agent. By default, only essential domains are allowed.`)
|
|
};
|
|
|
|
const zh_network_sandbox_description = /** @type {(inputs: Network_Sandbox_DescriptionInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`配置沙箱智能体的允许域名。默认情况下,仅允许必要域名。`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Configure allowed domains for the sandboxed agent. By default, only essential domains are allowed." |
|
|
*
|
|
* @param {Network_Sandbox_DescriptionInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const network_sandbox_description = /** @type {((inputs?: Network_Sandbox_DescriptionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Network_Sandbox_DescriptionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_network_sandbox_description(inputs)
|
|
return zh_network_sandbox_description(inputs)
|
|
}); |