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

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

/** @typedef {{ title: NonNullable<unknown> }} Reader_Now_PlayingInputs */

const en_reader_now_playing = /** @type {(inputs: Reader_Now_PlayingInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Now playing: ${i?.title}`)
};

const ru_reader_now_playing = /** @type {(inputs: Reader_Now_PlayingInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Сейчас играет: ${i?.title}`)
};

const id_reader_now_playing = /** @type {(inputs: Reader_Now_PlayingInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Sedang diputar: ${i?.title}`)
};

const pt_reader_now_playing = /** @type {(inputs: Reader_Now_PlayingInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`Reproduzindo: ${i?.title}`)
};

const fr_reader_now_playing = /** @type {(inputs: Reader_Now_PlayingInputs) => LocalizedString} */ (i) => {
	return /** @type {LocalizedString} */ (`En cours : ${i?.title}`)
};

/**
* | output |
* | --- |
* | "Now playing: {title}" |
*
* @param {Reader_Now_PlayingInputs} inputs
* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options
* @returns {LocalizedString}
*/
export const reader_now_playing = /** @type {((inputs: Reader_Now_PlayingInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Reader_Now_PlayingInputs, { locale?: "en" | "ru" | "id" | "pt" | "fr" }, {}>} */ ((inputs, options = {}) => {
	const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
	if (locale === "en") return en_reader_now_playing(inputs)
	if (locale === "ru") return ru_reader_now_playing(inputs)
	if (locale === "id") return id_reader_now_playing(inputs)
	if (locale === "pt") return pt_reader_now_playing(inputs)
	return fr_reader_now_playing(inputs)
});