mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 04:44:28 +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 {{ target: NonNullable<unknown> }} Quota_Reset_Usage_ConfirmInputs */
|
|
|
|
const en_quota_reset_usage_confirm = /** @type {(inputs: Quota_Reset_Usage_ConfirmInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`Reset usage for ${i?.target}? Consumption will be cleared and a new quota window will start now.`)
|
|
};
|
|
|
|
const zh_quota_reset_usage_confirm = /** @type {(inputs: Quota_Reset_Usage_ConfirmInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`确定要重置 ${i?.target} 的使用量吗?当前消耗将被清零,并立即开始新的配额周期。`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Reset usage for {target}? Consumption will be cleared and a new quota window will start now." |
|
|
*
|
|
* @param {Quota_Reset_Usage_ConfirmInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const quota_reset_usage_confirm = /** @type {((inputs: Quota_Reset_Usage_ConfirmInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Quota_Reset_Usage_ConfirmInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_quota_reset_usage_confirm(inputs)
|
|
return zh_quota_reset_usage_confirm(inputs)
|
|
}); |