mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 22:59:09 +00:00
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 {{}} Api_Token_Generated_SuccessfullyInputs */
|
|
|
|
const en_api_token_generated_successfully = /** @type {(inputs: Api_Token_Generated_SuccessfullyInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`API token generated successfully`)
|
|
};
|
|
|
|
const zh_api_token_generated_successfully = /** @type {(inputs: Api_Token_Generated_SuccessfullyInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`API 令牌生成成功`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "API token generated successfully" |
|
|
*
|
|
* @param {Api_Token_Generated_SuccessfullyInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const api_token_generated_successfully = /** @type {((inputs?: Api_Token_Generated_SuccessfullyInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Api_Token_Generated_SuccessfullyInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_api_token_generated_successfully(inputs)
|
|
return zh_api_token_generated_successfully(inputs)
|
|
}); |