Provides three models (Multilingual::
):
Language
each represented by a unique ISO-639-1 two-letter code.Translation
a polymorphic model that represents the name/translation of any other model in a particular language. Can optionally have a translation type if you want to track information about the translation itself.TranslationType
represents a quality of the associated translation. Given by a unique name and integer level. Examples are automatic, beginner, intermediate, expert, or similar.
How to use my plugin.
If you want to use translation types, your application should open the class
Multilingual::TranslationType
and add the following association:
belongs_to :type, class_name: 'TranslationType'
Add this line to your application's Gemfile:
gem 'multilingual'
And then execute:
$ bundle
Or install it yourself as:
$ gem install multilingual
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.