/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';

/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */

/** @typedef {{ error: NonNullable<unknown> }} Admin_Changelog_Load_ErrorInputs */

const en_admin_changelog_load_error = /** @type {(inputs: Admin_Changelog_Load_ErrorInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Could not load releases: ${i?.error}`)
};

const ru_admin_changelog_load_error = /** @type {(inputs: Admin_Changelog_Load_ErrorInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Не удалось загрузить релизы: ${i?.error}`)
};

const id_admin_changelog_load_error = /** @type {(inputs: Admin_Changelog_Load_ErrorInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Gagal memuat rilis: ${i?.error}`)
};

const pt_admin_changelog_load_error = /** @type {(inputs: Admin_Changelog_Load_ErrorInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Não foi possível carregar os releases: ${i?.error}`)
};

const fr_admin_changelog_load_error = /** @type {(inputs: Admin_Changelog_Load_ErrorInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Impossible de charger les releases : ${i?.error}`)
};

/**
* | output |
* | --- |
* | "Could not load releases: {error}" |
*
* @param {Admin_Changelog_Load_ErrorInputs} inputs
* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options
* @returns {LocalizedString}
*/
export const admin_changelog_load_error = /** @type {((inputs: Admin_Changelog_Load_ErrorInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Admin_Changelog_Load_ErrorInputs, { locale?: "en" | "ru" | "id" | "pt" | "fr" }, {}>} */ ((inputs, options = {}) => {
	const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
	if (locale === "en") return en_admin_changelog_load_error(inputs)
	if (locale === "ru") return ru_admin_changelog_load_error(inputs)
	if (locale === "id") return id_admin_changelog_load_error(inputs)
	if (locale === "pt") return pt_admin_changelog_load_error(inputs)
	return fr_admin_changelog_load_error(inputs)
});