https://github.com/unfoldingword/uw-languages-rcl
A React Component Library for Rendering Language Information
https://github.com/unfoldingword/uw-languages-rcl
scripture-open-components
Last synced: 3 months ago
JSON representation
A React Component Library for Rendering Language Information
- Host: GitHub
- URL: https://github.com/unfoldingword/uw-languages-rcl
- Owner: unfoldingWord
- License: mit
- Created: 2019-09-23T17:18:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-12T16:17:45.000Z (almost 2 years ago)
- Last Synced: 2025-02-06T16:57:30.929Z (4 months ago)
- Topics: scripture-open-components
- Language: JavaScript
- Homepage: https://unfoldingword.github.io/uw-languages-rcl/
- Size: 9.49 MB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [uw-languages-rcl](https://unfoldingWord.github.io/uw-languages-rcl/)
A React Component Library for Languages
The source information will be from a JSON file `langnames.json` [here](https://td2.unfoldingword.org/exports/langnames.json).
This is an array of objects, one per language.Here is an example:
```json
{
"pk": 7501,
"ang": "Zhuang, Zuojiang",
"lr": "Asia",
"gw": false,
"hc": "CN",
"ln": "\u5de6\u6c5f",
"lc": "zzj",
"ld": "ltr",
"alt": [
"Ken Tho",
"Longyin",
"Longzhou",
"Pho Thai",
"Pu Tho",
"Southern Zhuang",
"Zhuangyu nanbu fangyan Zuojiang tuyu",
"Nung Chao"
],
"cc": ["CN"]
}
```The package essentially provide a custom React Hook which returns
state and actions (a small set of functions to use for language data).The code in the `demos` folder are examples of using the custom hook.
## General Language Information
The Library of Congress has a list of language names with both
two and three character codes (ISO 639-1 and 639-2, respectively).
Link: https://www.loc.gov/standards/iso639-2/php/English_list.phpThe site https://iso639-3.sil.org/ has a link to download a number of
language tables in TSV format (easy to import into a spreadsheet).Direct link to download the tables:
https://iso639-3.sil.org/code_tables/download_tablesOf the ones available, this one combines common useful info:
https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab