Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 localeapp-i18n-js.gemspec
README.md

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.1a

Ruby Version: 1.9.2, 1.9.3

Rails Version: > 3.1

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/randym/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
Something went wrong with that request. Please try again.