リファレンス
国と地域の名前
import { … } from "@johnmorrisdotca/hata/names";
最小化と gzip 圧縮をしたサイズは 8.9 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
flagAspect | 関数 | A flag's width over its height, from its picture's viewBox, without loading the picture: 1.5 for Japan's 2:3, 2 for Canada's 1:2. |
flagName | 関数 | The name of a flag's place, in English or Japanese, as Kuni gives it: what a screen reader should say for the flag, or a caption. |
NameLanguage | 型 | The languages a flag's place is named in. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。