i18n

Version, currently master branch1 version
  • master branchlatestOct 31, 2016

github.com/hugoabonizio/i18n.cr

:speech_balloon: Internationalization (i18n) library for Crystal

3 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  i18n:
    github: hugoabonizio/i18n.cr
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Author
Hugo Abonizio

Dependencies

This version declares no dependencies.

README

I18n.cr

Crystal internationalization (i18n) solution.

Installation

Add this to your application's shard.yml:

dependencies:
  i18n:
    github: hugoabonizio/i18n.cr

Usage

require "i18n"

# Loads ./pt-BR.yml
I18n.locale = :"pt-BR"
puts I18n.t "hello"
# "olá"

Contributing

  1. Fork it ( https://github.com/hugoabonizio/i18n/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors