Skip to content

Hooks up i18n-js to localeapp for reporting missing translations in a javascript UI

Notifications You must be signed in to change notification settings

shoperb/localeapp-i18n-js

 
 

Repository files navigation

Localeapp I18n-js: Iintegrating javascript based front end localizations to the localeapp service.

Build Status

IRC: irc.freenode.net / #axlsx

Git: http://github.com/randym/localeapp-i18n-js

Twitter: https://twitter.com/#!/morgan_randy release announcements and news will be published here

Author: Randy Morgan

Copyright: 2012

License: MIT License

Latest Version: 0.0.2

Rails Version: ~ 4.0

Release Date: TBD

Synopsis

Localeapp is a great service for simplifying the localization process for your standard rails app using i18n. It will pick up any missing keys in your local locale files and publish that information so that localizers can easily and rapidly complete localization. However, more and more applications are moving toward emberjs styles of managing the client interface and rely on tools like i18n-js to feed rails localizations to the front end. This gem glues those two things together by posting missing translations found in i18n-js to your localeapp project.

Installation

Add the following to your Gemfile

gem "localeapp-i18n-js", :git => 'git://github.com/shoperb/localeapp-i18n-js.git'

Configuration

Assuming you have properly configured i18n-js and localeapp, you do not need to configure anything. When Rails is running in development mode all missing translations found by i18n-js will be passed on to the localeapp handlers that normally only pick up on I18n missing translations.

You do, however, need to add this to the end of your application.js

#/app/assets/javascripts/application.js
//= require localeapp-i18n-js

About

Hooks up i18n-js to localeapp for reporting missing translations in a javascript UI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 76.8%
  • HTML 9.6%
  • Shell 9.2%
  • JavaScript 2.5%
  • CSS 1.9%