mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 19:39:27 +00:00
* feat(webui): add mobile friendly file detail and public share view * fix(webui): address review feedback for mobile file detail and public share view * fix(webui): use dynamic viewport and flex column layout for mobile file viewer * fix(webui): support iOS WebKit video fullscreen and guard requestFullscreen * fix(webui): compact page indicator and layout in mobile PDF control bar
29 lines
1014 B
JavaScript
Generated
29 lines
1014 B
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} FormatInputs */
|
|
|
|
const en_format = /** @type {(inputs: FormatInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Format`)
|
|
};
|
|
|
|
const zh_format = /** @type {(inputs: FormatInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`格式`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Format" |
|
|
*
|
|
* @param {FormatInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const format = /** @type {((inputs?: FormatInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<FormatInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_format(inputs)
|
|
return zh_format(inputs)
|
|
}); |