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

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

/** @typedef {{ title: NonNullable<unknown>, n: NonNullable<unknown> }} Reader_Page_TitleInputs */

const en_reader_page_title = /** @type {(inputs: Reader_Page_TitleInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.title} — Ch.${i?.n} — libnovel`)
};

const ru_reader_page_title = /** @type {(inputs: Reader_Page_TitleInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.title} — Гл.${i?.n} — libnovel`)
};

const id_reader_page_title = /** @type {(inputs: Reader_Page_TitleInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.title} — Bab.${i?.n} — libnovel`)
};

const pt_reader_page_title = /** @type {(inputs: Reader_Page_TitleInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.title} — Cap.${i?.n} — libnovel`)
};

const fr_reader_page_title = /** @type {(inputs: Reader_Page_TitleInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`${i?.title} — Ch.${i?.n} — libnovel`)
};

/**
* | output |
* | --- |
* | "{title} — Ch.{n} — libnovel" |
*
* @param {Reader_Page_TitleInputs} inputs
* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options
* @returns {LocalizedString}
*/
export const reader_page_title = /** @type {((inputs: Reader_Page_TitleInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Reader_Page_TitleInputs, { locale?: "en" | "ru" | "id" | "pt" | "fr" }, {}>} */ ((inputs, options = {}) => {
	const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
	if (locale === "en") return en_reader_page_title(inputs)
	if (locale === "ru") return ru_reader_page_title(inputs)
	if (locale === "id") return id_reader_page_title(inputs)
	if (locale === "pt") return pt_reader_page_title(inputs)
	return fr_reader_page_title(inputs)
});