CA_PROVINCE_NAMES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every Canadian province and territory by its English or French name, to its code.
インポート
import { CA_PROVINCE_NAMES } from "@johnmorrisdotca/address-plus";
定義
const CA_PROVINCE_NAMES: Record<string, string> = {
...CA_PROVINCE_NAMES_EN,
...CA_PROVINCE_NAMES_FR,
}
例
import { CA_PROVINCE_NAMES } from "@johnmorrisdotca/address-plus";
console.log(CA_PROVINCE_NAMES["québec"]);
// → "QC"QC出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。