本文へ移動

Kuni国

国、コード、名前、行政区画を調べ、必要なときに国のデータを読み込み、標準の国のカードを表示できます。

「国(くに)」は、国を表す日本語です。 名前について(英語)

目次

リファレンス · /subdivision-reforms

SubdivisionReformUnit型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

One unit after a rearrangement, named by the law, made of current ISO 3166-2 codes.

インポート

import type { SubdivisionReformUnit } from "@johnmorrisdotca/kuni/subdivision-reforms";

定義

interface SubdivisionReformUnit {
    name: string;
    nameJa: string | null;
    clause: number;
    kept: string;
    from: readonly string[];
}

メンバー

名前型説明
namestring

The name the law writes, in Vietnamese with its diacritics.

nameJastring | null

Japanese kuni already stores for kept, or null when the law's name is not that current name.

clausenumber

The clause of the law's article that names this unit.

keptstring

The current ISO 3166-2 code whose name the law kept. It is one of from.

fromreadonly string[]

The current ISO 3166-2 codes that form this unit, in the order the law names them.

例

import type { SubdivisionReformUnit } from "@johnmorrisdotca/kuni/subdivision-reforms";

const value: SubdivisionReformUnit = { name: "Tuyên Quang", nameJa: "トゥエンクアン省", clause: 1, kept: "VN-07", from: ["VN-03", "VN-07"] };
console.log(value.kept);
VN-07

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/kuni 1.19.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。