Skip to content

Elixir library that uses the Common Locale Data Repository to format dates, numbers, and more.

License

Notifications You must be signed in to change notification settings

craig-day/cldrex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLDRex

⚠ This is still a WIP. Many of the features are not implemented yet, but are being actively developed.

CLDRex uses Unicode's Common Locale Data Repository (CLDR) to localize text.

This project takes many hints and guidance from TwitterCldr

Installation

  1. Add cldrex to your list of dependencies in mix.exs:

    def deps do [{:cldrex, "~> 0.0.7"}] end

  2. Ensure cldrex is started before your application:

    def application do [applications: [:cldrex]] end

Support

The following data from the CLDR is supported.

Key Meaning
Supported
In Progress
Not Yet Supported
  • Languages Names ✅
  • Calendar
    • Months ✅
    • Days ✅
    • Quarters ❌
    • Day Periods ❌
  • Dates ⚡
  • Times ⚡
  • Numbers
    • Basic ⚡
    • Currency ❌
    • Percent ❌
    • Decimal ❌

Usage

For now, view the documentation on hexdocs.

Contribute

PRs welcome.

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it.
  • Commit, do not mess with version, or history. (If you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull.)
  • Submit a pull request.

About

Elixir library that uses the Common Locale Data Repository to format dates, numbers, and more.

Resources

License

Stars

Watchers

Forks

Packages

No packages published