mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 19:04:23 +00:00
29 lines
1.2 KiB
JavaScript
Generated
29 lines
1.2 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{ count: NonNullable<unknown> }} All_Share_Links_CountInputs */
|
|
|
|
const en_all_share_links_count = /** @type {(inputs: All_Share_Links_CountInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`All Share Links (${i?.count})`)
|
|
};
|
|
|
|
const zh_all_share_links_count = /** @type {(inputs: All_Share_Links_CountInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`所有分享链接 (${i?.count})`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "All Share Links ({count})" |
|
|
*
|
|
* @param {All_Share_Links_CountInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const all_share_links_count = /** @type {((inputs: All_Share_Links_CountInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<All_Share_Links_CountInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_all_share_links_count(inputs)
|
|
return zh_all_share_links_count(inputs)
|
|
}); |