DE_UNIT_TYPES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The words for a flat or a room, which the parser reports as secUnitType in full, with the abbreviations it reads
for each: Whg. 12 is Wohnung 12.
インポート
import { DE_UNIT_TYPES } from "@johnmorrisdotca/address-plus/de";
定義
const DE_UNIT_TYPES: Readonly<Record<string, readonly string[]>> = {
Wohnung: ["whg", "wohn", "wo"],
Appartement: ["app", "apt", "appt"],
Zimmer: ["zi"],
Büro: ["bü", "buero"],
Raum: ["rm"],
}
例
import { DE_UNIT_TYPES } from "@johnmorrisdotca/address-plus/de";
console.log(DE_UNIT_TYPES.Wohnung);
// → ["whg","wohn","wo"][ 'whg', 'wohn', 'wo' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。