mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 11:24:43 +00:00
35 lines
1.2 KiB
JavaScript
35 lines
1.2 KiB
JavaScript
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js'
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Failed_Create_FolderInputs */
|
|
|
|
const en_failed_create_folder =
|
|
/** @type {(inputs: Failed_Create_FolderInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Failed to create folder`)
|
|
}
|
|
|
|
const zh_failed_create_folder =
|
|
/** @type {(inputs: Failed_Create_FolderInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`创建文件夹失败`)
|
|
}
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Failed to create folder" |
|
|
*
|
|
* @param {Failed_Create_FolderInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const failed_create_folder =
|
|
/** @type {((inputs?: Failed_Create_FolderInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Failed_Create_FolderInputs, { locale?: "en" | "zh" }, {}>} */ (
|
|
(inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === 'en') return en_failed_create_folder(inputs)
|
|
return zh_failed_create_folder(inputs)
|
|
}
|
|
)
|