Reference · Parsing, formatting and shared types
CA_PROVINCE_NAMESconstant
Every Canadian province and territory by its English or French name, to its code.
Import it
import { CA_PROVINCE_NAMES } from "@johnmorrisdotca/address-plus";
Definition
const CA_PROVINCE_NAMES: Record<string, string> = {
...CA_PROVINCE_NAMES_EN,
...CA_PROVINCE_NAMES_FR,
}
Examples
import { CA_PROVINCE_NAMES } from "@johnmorrisdotca/address-plus";
console.log(CA_PROVINCE_NAMES["québec"]);
// → "QC"QCWhat it prints (run when this page was built)