mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 13:27:40 +00:00
29 lines
1.0 KiB
JavaScript
Generated
29 lines
1.0 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} CommentsInputs */
|
|
|
|
const en_comments = /** @type {(inputs: CommentsInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Comments`)
|
|
};
|
|
|
|
const zh_comments = /** @type {(inputs: CommentsInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`评论`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Comments" |
|
|
*
|
|
* @param {CommentsInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const comments = /** @type {((inputs?: CommentsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<CommentsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_comments(inputs)
|
|
return zh_comments(inputs)
|
|
}); |