UKNation型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A nation of the United Kingdom in the tables: its code, its ISO 3166-2 code, and its name in English and in Japanese (from kuni, which takes them from Unicode CLDR and Wikidata).
インポート
import type { UKNation } from "@johnmorrisdotca/address-plus/gb";
ほかのエクスポート元: @johnmorrisdotca/address-plus
定義
interface UKNation {
code: UKNationCode;
iso: string;
name: string;
nameJa: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
code | UKNationCode | |
iso | string | |
name | string | |
nameJa | string |
例
import { GB_NATIONS } from "@johnmorrisdotca/address-plus/gb";
import type { UKNation } from "@johnmorrisdotca/address-plus/gb";
console.log(GB_NATIONS.find((nation) => nation.code === "SCT"));
// → {"code":"SCT","iso":"GB-SCT","name":"Scotland","nameJa":"スコットランド"}{ code: 'SCT', iso: 'GB-SCT', name: 'Scotland', nameJa: 'スコットランド' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。