CA_PROVINCE_ALTERNATIVES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Other ways Canadian provinces are written (old and informal abbreviations such as PQ, Que., Nfld.), in lower
case, to their codes.
インポート
import { CA_PROVINCE_ALTERNATIVES } from "@johnmorrisdotca/address-plus";
定義
const CA_PROVINCE_ALTERNATIVES: Record<string, string> = {
alb: "AB",
alta: "AB",
man: "MB",
newfoundland: "NL",
nf: "NL",
nfld: "NL",
labrador: "NL",
"terre-neuve": "NL",
"terre neuve": "NL",
"terre neuve et labrador": "NL",
tnl: "NL",
northwest: "NT",
territories: "NT",
territoires: "NT",
nwt: "NT",
"tn-o": "NT",
nvt: "NU",
ont: "ON",
pei: "PE",
"prince edward": "PE",
"ile-du-prince-édouard": "PE",
"île du prince édouard": "PE",
"ile du prince édouard": "PE",
îpé: "PE",
pq: "QC",
que: "QC",
sask: "SK",
}
例
import { CA_PROVINCE_ALTERNATIVES } from "@johnmorrisdotca/address-plus";
console.log(CA_PROVINCE_ALTERNATIVES["pq"]);
// → "QC"QC出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。