mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 12:24:39 +00:00
29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
/* eslint-disable */
|
|||
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||
|
|
|
||
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||
|
|
|
||
|
|
/** @typedef {{}} Agents_Md_LoadingInputs */
|
||
|
|
|
||
|
|
const en_agents_md_loading = /** @type {(inputs: Agents_Md_LoadingInputs) => LocalizedString} */ () => {
|
||
|
|
return /** @type {LocalizedString} */ (`Loading AGENTS.md...`)
|
||
|
|
};
|
||
|
|
|
||
|
|
const zh_agents_md_loading = /** @type {(inputs: Agents_Md_LoadingInputs) => LocalizedString} */ () => {
|
||
|
|
return /** @type {LocalizedString} */ (`正在加载 AGENTS.md...`)
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* | output |
|
||
|
|
* | --- |
|
||
|
|
* | "Loading AGENTS.md..." |
|
||
|
|
*
|
||
|
|
* @param {Agents_Md_LoadingInputs} inputs
|
||
|
|
* @param {{ locale?: "en" | "zh" }} options
|
||
|
|
* @returns {LocalizedString}
|
||
|
|
*/
|
||
|
|
export const agents_md_loading = /** @type {((inputs?: Agents_Md_LoadingInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agents_Md_LoadingInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||
|
|
if (locale === "en") return en_agents_md_loading(inputs)
|
||
|
|
return zh_agents_md_loading(inputs)
|
||
|
|
});
|