mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 06:54:28 +00:00
chore(i18n): commit generated paraglide code and disable output gitignore
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} DashboardInputs */
|
||||
|
||||
const en_dashboard = /** @type {(inputs: DashboardInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Dashboard`)
|
||||
};
|
||||
|
||||
const zh_dashboard = /** @type {(inputs: DashboardInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`控制台`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Dashboard" |
|
||||
*
|
||||
* @param {DashboardInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const dashboard = /** @type {((inputs?: DashboardInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<DashboardInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_dashboard(inputs)
|
||||
return zh_dashboard(inputs)
|
||||
});
|
||||
Reference in New Issue
Block a user