alerque / cldr-lua

Unicode CLDR data and Lua interface
MIT License
0 stars 0 forks source link
cldr cldr-data cldr-plural-rules i18n internationalization l10n lua luarocks unicode

CLDR Lua

Luacheck Busted Coverage Status GitHub tag (latest SemVer) LuaRocks

Unicode CLDR (Common Locale Data Repository) data and Lua interface.

What is CLDR?

From the CLDR website:

The Unicode CLDR provides key building blocks for software to support the world's languages, with the largest and most extensive standard repository of locale data available.

What does this data set include?

For now, data and interfaces will be added on an as-needed basis. Here is a basic rundown of the data available upstream vs. what this library currently provides.

All included data is based on Unicode's CLDR 42 data set.

Locale-specific patterns for formatting and parsing:

Translations of names:

Language & script information:

Country information:

Validity:

Definitions, aliases, and validity information for Unicode

Usage

local CLDR = require("cldr")

-- Table (pl.Set) of all available locales
CLDR.locales

Changelog

Please see CHANGELOG.md.

Other Formats

The CLDR data is provided upstream in LDML format (XML based). A JSON dump is also available.

License

The Lua interfaces and code in this project are licensed under the MIT license.

All CLDR data provided by the Unicode Consortium is governed by the Unicode Terms of Use.