mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 23:24:21 +00:00
37 lines
1.6 KiB
JavaScript
37 lines
1.6 KiB
JavaScript
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js'
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Registration_Disabled_DescriptionInputs */
|
|
|
|
const en_registration_disabled_description =
|
|
/** @type {(inputs: Registration_Disabled_DescriptionInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (
|
|
`Public registration is currently disabled. You will need an invite code to join this team.`
|
|
)
|
|
}
|
|
|
|
const zh_registration_disabled_description =
|
|
/** @type {(inputs: Registration_Disabled_DescriptionInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`公开注册目前已关闭。您需要邀请码才能加入此团队。`)
|
|
}
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Public registration is currently disabled. You will need an invite code to join this team." |
|
|
*
|
|
* @param {Registration_Disabled_DescriptionInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const registration_disabled_description =
|
|
/** @type {((inputs?: Registration_Disabled_DescriptionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Registration_Disabled_DescriptionInputs, { locale?: "en" | "zh" }, {}>} */ (
|
|
(inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === 'en') return en_registration_disabled_description(inputs)
|
|
return zh_registration_disabled_description(inputs)
|
|
}
|
|
)
|