Project

cmdx-i18n

0.0
No release in over 3 years
I18n translations and localization for CMDx.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

>= 1.5.0
 Project Readme
CMDx Logo CMDx Logo

I18n localization files for the CMDx framework.

Changelog · Report Bug · Request Feature

Version Build License

CMDx::I18n

Centralization of locales for CMDx.

Note

The contents of this gem have been integrated in the CMDx itself and is meant for backwards compatibility between versions 1.5.0 and 1.6.2. This gem will only receive bug and security patches.

Installation

Add this line to your application's Gemfile:

gem 'cmdx-i18n'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cmdx-i18n

Configuration

If the I18n gem is installed in a Rails app, cmdx-i18n locales are automatically loaded and are managed through the I18n.available_locales option.

Local Version

Execute the following command to copy any locale to the Rails applications config/locales directory:

rails generate cmdx:i18n:locale [LOCALE]

# Eg: generate french locale
rails generate cmdx:i18n:locale fr

Locales

  • af - Afrikaans
  • ar - Arabic
  • az - Azerbaijani
  • be - Belarusian
  • bg - Bulgarian
  • bn - Bengali
  • bs - Bosnian
  • ca - Catalan
  • cnr - Montenegrin
  • cs - Czech
  • cy - Welsh
  • da - Danish
  • de - German
  • dz - Dzongkha
  • el - Greek
  • en - English
  • eo - Esperanto
  • es - Spanish
  • et - Estonian
  • eu - Basque
  • fa - Persian
  • fi - Finnish
  • fr - French
  • fy - Western Frisian
  • gd - Scottish Gaelic
  • gl - Galician
  • he - Hebrew
  • hi - Hindi
  • hr - Croatian
  • hu - Hungarian
  • hy - Armenian
  • id - Indonesian
  • is - Icelandic
  • it - Italian
  • ja - Japanese
  • ka - Georgian
  • kk - Kazakh
  • km - Khmer
  • kn - Kannada
  • ko - Korean
  • lb - Luxembourgish
  • lo - Lao
  • lt - Lithuanian
  • lv - Latvian
  • mg - Malagasy
  • mk - Macedonian
  • ml - Malayalam
  • mn - Mongolian
  • mr-IN - Marathi (India)
  • ms - Malay
  • nb - Norwegian Bokmål
  • ne - Nepali
  • nl - Dutch
  • nn - Norwegian Nynorsk
  • oc - Occitan
  • or - Odia
  • pa - Punjabi
  • pl - Polish
  • pt - Portuguese
  • rm - Romansh
  • ro - Romanian
  • ru - Russian
  • sc - Sardinian
  • sk - Slovak
  • sl - Slovenian
  • sq - Albanian
  • sr - Serbian
  • st - Southern Sotho
  • sv - Swedish
  • sw - Swahili
  • ta - Tamil
  • te - Telugu
  • th - Thai
  • tl - Tagalog
  • tr - Turkish
  • tt - Tatar
  • ug - Uyghur
  • uk - Ukrainian
  • ur - Urdu
  • uz - Uzbek
  • vi - Vietnamese
  • wo - Wolof
  • zh-CN - Chinese (Simplified)
  • zh-HK - Chinese (Hong Kong)
  • zh-TW - Chinese (Traditional)
  • zh-YUE - Chinese (Yue)

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/drexed/cmdx-i18n. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Cmdx::I18n project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.