mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-06 16:24:17 +00:00
35 lines
1.3 KiB
JavaScript
35 lines
1.3 KiB
JavaScript
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js'
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Field_Updated_SuccessfullyInputs */
|
|
|
|
const en_field_updated_successfully =
|
|
/** @type {(inputs: Field_Updated_SuccessfullyInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Field updated successfully`)
|
|
}
|
|
|
|
const zh_field_updated_successfully =
|
|
/** @type {(inputs: Field_Updated_SuccessfullyInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`字段更新成功`)
|
|
}
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Field updated successfully" |
|
|
*
|
|
* @param {Field_Updated_SuccessfullyInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const field_updated_successfully =
|
|
/** @type {((inputs?: Field_Updated_SuccessfullyInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_Updated_SuccessfullyInputs, { locale?: "en" | "zh" }, {}>} */ (
|
|
(inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === 'en') return en_field_updated_successfully(inputs)
|
|
return zh_field_updated_successfully(inputs)
|
|
}
|
|
)
|