Giter Site home page Giter Site logo

unfoldingword / uw-languages-rcl Goto Github PK

View Code? Open in Web Editor NEW
0.0 8.0 1.0 9.72 MB

A React Component Library for Rendering Language Information

Home Page: https://unfoldingword.github.io/uw-languages-rcl/

License: MIT License

JavaScript 100.00%
scripture-open-components

uw-languages-rcl's Introduction

A React Component Library for Languages

The source information will be from a JSON file langnames.json here. This is an array of objects, one per language.

Here is an example:

{
"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.php

The 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_tables

Of the ones available, this one combines common useful info: https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab

uw-languages-rcl's People

Contributors

abelpz avatar dependabot[bot] avatar mandolyte avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

richmahn

uw-languages-rcl's Issues

Cannot use uw-languages-rcl in door43-preview-app

Description

the door43-preview-app will crash when I try to use useLanguages from uw-languages-rcl. For the moment I have just copied useLanguages.js into the app to get it to work.

Suspect issue with missing dependency or web pack config problem?

Additional context

Add any other context or screenshots about the feature request here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.