Lost in translation
Rails i18n web interface
Translate your apps with pleasure (sort of...) and for free. It's simple i18n web interface, build on top of twitter bootstrap, that one may find helpful in translating app by non-technicals.
Highly inspired by Copycopter by thoughtbot.
Features
- Runs with your app - no need for external services
- Support for array types, (ie.
date.abbr_day_names
) - Versioning translations - you can always check, how value did look like in past
- Possibility to synchronize between environments or even apps
- Easy to install - works as an engine, comes with simple generator
- You can always export all translations to plain old YAML file
- Has build in wysiwyg editor (jQuery TE)
Screenshots
Check wiki: Screenshots
Installation
Add
lit
gem to yourGemfile
gem "lit"
run
bundle install
run installation generator
bundle exec rails g lit:install
(for production/staging environmentredis
is suggested as key value engine.hash
will not work in multi process environment)After doing above and restarting app, point your browser to
http://app/lit
Profit!
You may want to take a look at generated initializer in config/initializers/lit.rb
and change some default configuration options.
ToDo
- ~~Versioning~~
- ~~API~~
- ~~Synchronization between environments~~
- Rewrite initializer
- ~~Rewrite exporter (which is now code from copycopter)~~
- ~~Support for array types (ie.
date.abbr_day_names
)~~ - ~~Generator~~
- ~~Support for wysiwyg~~
- Better cache
- ~~Support for other key value providers (ie. Redis does not support Array types in easy way)~~ (not applicable, as array storage works now with redis).
- Integration with ActiveAdmin
- Support for Proc defaults (like in
I18n.t("not_exising_keys", :default=> lambda{|_, options| "text"})
)
License
Lit is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.