mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 06:54:28 +00:00
chore: add paraglide generated folders to prettier ignore files
This commit is contained in:
@@ -1,32 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js'
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} ProcessingInputs */
|
||||
|
||||
const en_processing = /** @type {(inputs: ProcessingInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Processing...`)
|
||||
}
|
||||
return /** @type {LocalizedString} */ (`Processing...`)
|
||||
};
|
||||
|
||||
const zh_processing = /** @type {(inputs: ProcessingInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`处理中...`)
|
||||
}
|
||||
return /** @type {LocalizedString} */ (`处理中...`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Processing..." |
|
||||
*
|
||||
* @param {ProcessingInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const processing =
|
||||
/** @type {((inputs?: ProcessingInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<ProcessingInputs, { locale?: "en" | "zh" }, {}>} */ (
|
||||
(inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === 'en') return en_processing(inputs)
|
||||
return zh_processing(inputs)
|
||||
}
|
||||
)
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Processing..." |
|
||||
*
|
||||
* @param {ProcessingInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const processing = /** @type {((inputs?: ProcessingInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<ProcessingInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_processing(inputs)
|
||||
return zh_processing(inputs)
|
||||
});
|
||||
Reference in New Issue
Block a user