Add pricing plans and currency formatting for regional pricing display

This commit is contained in:
Jose Selesan
2026-09-15 17:04:32 -03:00
parent 531a77018f
commit 0d397ca7db
5 changed files with 78 additions and 48 deletions

View File

@@ -5,6 +5,11 @@ export default function (eleventyConfig) {
host: "0.0.0.0",
});
eleventyConfig.addFilter("formatPrice", (value, currency) => {
const locale = currency === "ars" ? "es-AR" : "en-US";
return new Intl.NumberFormat(locale).format(value);
});
return {
dir: {
input: "src",