Reference · Parsing, formatting and shared types
PROVINCE_EXPANSIONS_FRconstant
Each Canadian province's code in lower case, to its French name in lower case.
Import it
import { PROVINCE_EXPANSIONS_FR } from "@johnmorrisdotca/address-plus";
Definition
const PROVINCE_EXPANSIONS_FR: Record<string, string> = Object.fromEntries(Object.entries(CA_PROVINCE_NAMES_FR).map(([name, abbr]) => [abbr.toLowerCase(), name]))
Examples
import { PROVINCE_EXPANSIONS_FR } from "@johnmorrisdotca/address-plus";
console.log(PROVINCE_EXPANSIONS_FR["qc"]);
// → "québec"québecWhat it prints (run when this page was built)