Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/craig-day/cldrex
Elixir library that uses the Common Locale Data Repository to format dates, numbers, and more.
https://github.com/craig-day/cldrex
Last synced: 20 days ago
JSON representation
Elixir library that uses the Common Locale Data Repository to format dates, numbers, and more.
- Host: GitHub
- URL: https://github.com/craig-day/cldrex
- Owner: craig-day
- License: gpl-3.0
- Created: 2016-07-05T01:28:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-17T09:40:56.000Z (over 8 years ago)
- Last Synced: 2024-10-19T04:10:00.250Z (3 months ago)
- Language: Elixir
- Homepage:
- Size: 61.2 MB
- Stars: 1
- Watchers: 18
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/twitter/twitter-cldr-rb)
## Installation
1. Add cldrex to your list of dependencies in `mix.exs`:
def deps do
[{:cldrex, "~> 0.0.7"}]
end2. 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](https://hexdocs.pm/cldrex).
## 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.