mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 21:59:01 +00:00
29 lines
1.3 KiB
JavaScript
Generated
29 lines
1.3 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{ query: NonNullable<unknown> }} Try_Adjusting_SearchInputs */
|
|
|
|
const en_try_adjusting_search = /** @type {(inputs: Try_Adjusting_SearchInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`Try adjusting your search for "${i?.query}"`)
|
|
};
|
|
|
|
const zh_try_adjusting_search = /** @type {(inputs: Try_Adjusting_SearchInputs) => LocalizedString} */ (i) => {
|
|
return /** @type {LocalizedString} */ (`请尝试调整搜索 "${i?.query}"`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Try adjusting your search for \"{query}\"" |
|
|
*
|
|
* @param {Try_Adjusting_SearchInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const try_adjusting_search = /** @type {((inputs: Try_Adjusting_SearchInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Try_Adjusting_SearchInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_try_adjusting_search(inputs)
|
|
return zh_try_adjusting_search(inputs)
|
|
}); |