mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 15:14:10 +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 {{}} Cache_Write_Cost_1mInputs */
|
||
|
|
|
||
|
|
const en_cache_write_cost_1m = /** @type {(inputs: Cache_Write_Cost_1mInputs) => LocalizedString} */ () => {
|
||
|
|
return /** @type {LocalizedString} */ (`Cache Write Cost (1M)`)
|
||
|
|
};
|
||
|
|
|
||
|
|
const zh_cache_write_cost_1m = /** @type {(inputs: Cache_Write_Cost_1mInputs) => LocalizedString} */ () => {
|
||
|
|
return /** @type {LocalizedString} */ (`缓存写入成本(每百万)`)
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* | output |
|
||
|
|
* | --- |
|
||
|
|
* | "Cache Write Cost (1M)" |
|
||
|
|
*
|
||
|
|
* @param {Cache_Write_Cost_1mInputs} inputs
|
||
|
|
* @param {{ locale?: "en" | "zh" }} options
|
||
|
|
* @returns {LocalizedString}
|
||
|
|
*/
|
||
|
|
export const cache_write_cost_1m = /** @type {((inputs?: Cache_Write_Cost_1mInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Cache_Write_Cost_1mInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||
|
|
if (locale === "en") return en_cache_write_cost_1m(inputs)
|
||
|
|
return zh_cache_write_cost_1m(inputs)
|
||
|
|
});
|