mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 23:39:25 +00:00
29 lines
1.3 KiB
JavaScript
29 lines
1.3 KiB
JavaScript
/* eslint-disable */
|
|||
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||
|
|
|
||
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||
|
|
|
||
|
|
/** @typedef {{}} Bash_Command_Pattern_PlaceholderInputs */
|
||
|
|
|
||
|
|
const en_bash_command_pattern_placeholder = /** @type {(inputs: Bash_Command_Pattern_PlaceholderInputs) => LocalizedString} */ () => {
|
||
|
|
return /** @type {LocalizedString} */ (`e.g. * or npm*`)
|
||
|
|
};
|
||
|
|
|
||
|
|
const zh_bash_command_pattern_placeholder = /** @type {(inputs: Bash_Command_Pattern_PlaceholderInputs) => LocalizedString} */ () => {
|
||
|
|
return /** @type {LocalizedString} */ (`例如 * 或 npm*`)
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* | output |
|
||
|
|
* | --- |
|
||
|
|
* | "e.g. * or npm*" |
|
||
|
|
*
|
||
|
|
* @param {Bash_Command_Pattern_PlaceholderInputs} inputs
|
||
|
|
* @param {{ locale?: "en" | "zh" }} options
|
||
|
|
* @returns {LocalizedString}
|
||
|
|
*/
|
||
|
|
export const bash_command_pattern_placeholder = /** @type {((inputs?: Bash_Command_Pattern_PlaceholderInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Bash_Command_Pattern_PlaceholderInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||
|
|
if (locale === "en") return en_bash_command_pattern_placeholder(inputs)
|
||
|
|
return zh_bash_command_pattern_placeholder(inputs)
|
||
|
|
});
|