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

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

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

const en_books_last_read = /** @type {(inputs: Books_Last_ReadInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Last read: Ch.${i?.n}`)
};

const ru_books_last_read = /** @type {(inputs: Books_Last_ReadInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Последнее: гл.${i?.n}`)
};

const id_books_last_read = /** @type {(inputs: Books_Last_ReadInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Terakhir: Bab.${i?.n}`)
};

const pt_books_last_read = /** @type {(inputs: Books_Last_ReadInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Último: Cap.${i?.n}`)
};

const fr_books_last_read = /** @type {(inputs: Books_Last_ReadInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Dernier lu : Ch.${i?.n}`)
};

/**
* | output |
* | --- |
* | "Last read: Ch.{n}" |
*
* @param {Books_Last_ReadInputs} inputs
* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options
* @returns {LocalizedString}
*/
export const books_last_read = /** @type {((inputs: Books_Last_ReadInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Books_Last_ReadInputs, { locale?: "en" | "ru" | "id" | "pt" | "fr" }, {}>} */ ((inputs, options = {}) => {
	const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
	if (locale === "en") return en_books_last_read(inputs)
	if (locale === "ru") return ru_books_last_read(inputs)
	if (locale === "id") return id_books_last_read(inputs)
	if (locale === "pt") return pt_books_last_read(inputs)
	return fr_books_last_read(inputs)
});