GermanState型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A Land of Germany 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 { GermanState } from "@johnmorrisdotca/address-plus/de";
ほかのエクスポート元: @johnmorrisdotca/address-plus
定義
interface GermanState {
code: GermanStateCode;
iso: string;
name: string;
nameJa: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
code | GermanStateCode | |
iso | string | |
name | string | |
nameJa | string |
例
import { DE_STATES } from "@johnmorrisdotca/address-plus/de";
import type { GermanState } from "@johnmorrisdotca/address-plus/de";
console.log(DE_STATES.find((state) => state.code === "BY"));
// → {"code":"BY","iso":"DE-BY","name":"Bavaria","nameJa":"バイエルン自由州"}{ code: 'BY', iso: 'DE-BY', name: 'Bavaria', nameJa: 'バイエルン自由州' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。