All checks were successful
Release / Test backend (push) Successful in 40s
Release / Check ui (push) Successful in 46s
Release / Docker / caddy (push) Successful in 42s
Release / Docker / backend (push) Successful in 2m35s
Release / Docker / runner (push) Successful in 2m38s
Release / Docker / ui (push) Successful in 2m12s
Release / Gitea Release (push) Successful in 41s
- Add /subscribe route with hero, benefits list, and pricing cards (annual featured with Save 33% badge, monthly secondary) - Add 'Pro' link in nav for non-Pro users - Add 'See plans' link in profile subscription section - i18n keys across en/fr/id/pt/ru for all subscribe strings Note: checkout still requires POLAR_API_TOKEN with checkouts:write scope. Regenerate the token at polar.sh to fix the 502 error on subscribe buttons.
44 lines
1.9 KiB
JavaScript
44 lines
1.9 KiB
JavaScript
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Subscribe_Annual_PeriodInputs */
|
|
|
|
const en_subscribe_annual_period = /** @type {(inputs: Subscribe_Annual_PeriodInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`per year`)
|
|
};
|
|
|
|
const ru_subscribe_annual_period = /** @type {(inputs: Subscribe_Annual_PeriodInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`в год`)
|
|
};
|
|
|
|
const id_subscribe_annual_period = /** @type {(inputs: Subscribe_Annual_PeriodInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`per tahun`)
|
|
};
|
|
|
|
const pt_subscribe_annual_period = /** @type {(inputs: Subscribe_Annual_PeriodInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`por ano`)
|
|
};
|
|
|
|
const fr_subscribe_annual_period = /** @type {(inputs: Subscribe_Annual_PeriodInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`par an`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "per year" |
|
|
*
|
|
* @param {Subscribe_Annual_PeriodInputs} inputs
|
|
* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const subscribe_annual_period = /** @type {((inputs?: Subscribe_Annual_PeriodInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Subscribe_Annual_PeriodInputs, { locale?: "en" | "ru" | "id" | "pt" | "fr" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_subscribe_annual_period(inputs)
|
|
if (locale === "ru") return ru_subscribe_annual_period(inputs)
|
|
if (locale === "id") return id_subscribe_annual_period(inputs)
|
|
if (locale === "pt") return pt_subscribe_annual_period(inputs)
|
|
return fr_subscribe_annual_period(inputs)
|
|
}); |