ci: revert Compile translations step from CI workflows

This commit is contained in:
yiling
2026-06-26 12:24:41 +08:00
parent ba5f7296a8
commit bbe36a028d
52 changed files with 2070 additions and 1784 deletions
@@ -1,29 +1,32 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
import { getLocale, experimentalStaticLocale } from '../runtime.js'
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} ProjectsInputs */
const en_projects = /** @type {(inputs: ProjectsInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Projects`)
};
return /** @type {LocalizedString} */ (`Projects`)
}
const zh_projects = /** @type {(inputs: ProjectsInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`项目`)
};
return /** @type {LocalizedString} */ (`项目`)
}
/**
* | output |
* | --- |
* | "Projects" |
*
* @param {ProjectsInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const projects = /** @type {((inputs?: ProjectsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<ProjectsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_projects(inputs)
return zh_projects(inputs)
});
* | output |
* | --- |
* | "Projects" |
*
* @param {ProjectsInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const projects =
/** @type {((inputs?: ProjectsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<ProjectsInputs, { locale?: "en" | "zh" }, {}>} */ (
(inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === 'en') return en_projects(inputs)
return zh_projects(inputs)
}
)