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

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

/** @typedef {{ n: NonNullable<unknown> }} Books_Chapter_CountInputs */

const en_books_chapter_count = /** @type {(inputs: Books_Chapter_CountInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.n} chapters`)
};

const ru_books_chapter_count = /** @type {(inputs: Books_Chapter_CountInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.n} глав`)
};

const id_books_chapter_count = /** @type {(inputs: Books_Chapter_CountInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.n} bab`)
};

const pt_books_chapter_count = /** @type {(inputs: Books_Chapter_CountInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.n} capítulos`)
};

const fr_books_chapter_count = /** @type {(inputs: Books_Chapter_CountInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.n} chapitres`)
};

/**
* | output |
* | --- |
* | "{n} chapters" |
*
* @param {Books_Chapter_CountInputs} inputs
* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options
* @returns {LocalizedString}
*/
export const books_chapter_count = /** @type {((inputs: Books_Chapter_CountInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Books_Chapter_CountInputs, { locale?: "en" | "ru" | "id" | "pt" | "fr" }, {}>} */ ((inputs, options = {}) => {
	const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
	if (locale === "en") return en_books_chapter_count(inputs)
	if (locale === "ru") return ru_books_chapter_count(inputs)
	if (locale === "id") return id_books_chapter_count(inputs)
	if (locale === "pt") return pt_books_chapter_count(inputs)
	return fr_books_chapter_count(inputs)
});