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

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

/** @typedef {{ status: NonNullable<unknown> }} Error_StatusInputs */

const en_error_status = /** @type {(inputs: Error_StatusInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Error ${i?.status}`)
};

const ru_error_status = /** @type {(inputs: Error_StatusInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Ошибка ${i?.status}`)
};

const id_error_status = /** @type {(inputs: Error_StatusInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Error ${i?.status}`)
};

const pt_error_status = /** @type {(inputs: Error_StatusInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Erro ${i?.status}`)
};

const fr_error_status = /** @type {(inputs: Error_StatusInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Erreur ${i?.status}`)
};

/**
* | output |
* | --- |
* | "Error {status}" |
*
* @param {Error_StatusInputs} inputs
* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options
* @returns {LocalizedString}
*/
export const error_status = /** @type {((inputs: Error_StatusInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Error_StatusInputs, { locale?: "en" | "ru" | "id" | "pt" | "fr" }, {}>} */ ((inputs, options = {}) => {
	const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
	if (locale === "en") return en_error_status(inputs)
	if (locale === "ru") return ru_error_status(inputs)
	if (locale === "id") return id_error_status(inputs)
	if (locale === "pt") return pt_error_status(inputs)
	return fr_error_status(inputs)
});