import { createCustomHumanity } from "https://dotland.deno.dev/x/humanity@1.5.0/mod.ts";
create Humanity instance with custom locale
const Humanity = createCustomHumanity({
locale: "custom",
numbers: {
thousand: "tis",
million: "er",
billion: "pe",
trillion: "xe",
quadrillion: "fa",
quintillion: "ier",
},
});
console.log(Humanity.number(1000000)); // 1 000 000
// Output: 1 er