CA_PROVINCE_NAMES_EN定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every Canadian province and territory by its English name in lower case, to its two-letter code.
インポート
import { CA_PROVINCE_NAMES_EN } from "@johnmorrisdotca/address-plus";
定義
const CA_PROVINCE_NAMES_EN: Record<string, string> = {
alberta: "AB",
"british columbia": "BC",
manitoba: "MB",
"new brunswick": "NB",
"newfoundland and labrador": "NL",
"northwest territories": "NT",
"nova scotia": "NS",
nunavut: "NU",
ontario: "ON",
"prince edward island": "PE",
quebec: "QC",
saskatchewan: "SK",
yukon: "YT",
}
例
import { CA_PROVINCE_NAMES_EN } from "@johnmorrisdotca/address-plus";
console.log(CA_PROVINCE_NAMES_EN["british columbia"]);
// → "BC"BC出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。