Names of nationalities of China in romanization with codes 中国各民族名称的罗马字母拼写法和代码
English | 简体中文
npm install gb3304
The CDN build is also available on jsDelivr:
// Using ES modules
import { data, names } from 'gb3304';
// Using CommonJS modules
const { data, names } = require('gb3304');
data.find((item => item.name === '汉族'));
// {name: "汉族", romanization: "Han", code: "HA", digitalCode: "01"}
data.find((item) => item.name === '朝鲜族')
// {name: "朝鲜族", romanization: "Chosen", code: "CS", romanizationInternational: "Korean", digitalCode: "10"}
names.includes('藏族');
// true
MIT © Qingrong Ke