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

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

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

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

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

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

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

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

/**
* | output |
* | --- |
* | "{n} chapters" |
*
* @param {Book_Detail_N_ChaptersInputs} inputs
* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options
* @returns {LocalizedString}
*/
export const book_detail_n_chapters = /** @type {((inputs: Book_Detail_N_ChaptersInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Book_Detail_N_ChaptersInputs, { locale?: "en" | "ru" | "id" | "pt" | "fr" }, {}>} */ ((inputs, options = {}) => {
	const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
	if (locale === "en") return en_book_detail_n_chapters(inputs)
	if (locale === "ru") return ru_book_detail_n_chapters(inputs)
	if (locale === "id") return id_book_detail_n_chapters(inputs)
	if (locale === "pt") return pt_book_detail_n_chapters(inputs)
	return fr_book_detail_n_chapters(inputs)
});