Getting started
Quickstart Screencast
Quickstart Guide
Quickstart for Heroku Apps
Setting up your Project

Resources & Demos
Demo App for Rails 3.x
See how to do a complete implementation of i18n (internationalization) and l10n (localization) using Wordchuck.
Demo App Source Code
Source code showing a complete implementation of i18n (internationalization) and l10n (localization).

Support
Report an Issue
Request a Feature

Quick Start for Heroku Apps

Step 1: Internationalize (i18n)

If your app is not already internationalized, we recommend you get started by adding your app's content to your Wordchuck project.

As you add content, Wordchuck will generate the proper i18n code to insert into your app. This way, there's no guessing about what needs to go where. [see example]

If this is your first time internationalizing an app, our Demo App is a step-by-step guide showing how to do a complete i18n implementation in Rails. You can see all of the source code for the Demo App at github.

Step 2: Install the Wordchuck Ruby Gem

Install the Wordchuck gem:

$ sudo gem install wordchuck

Create an initializer (config/initializers/wordchuck.rb) to store your project's API key:

Wordchuck.configure do |config|
  config.project_key = 'whatever_your_project_key_is'
end


Your project's API key can be found on the "settings" page in the Wordchuck App.

NOTE: If you're using Rails 2.x, you'll also need to add the Rake task (generate.rake) to your lib/tasks folder. It can be found here.


Step 3: Generate your locale files

The Wordchuck gem automatically generates your locale files, including all of the latest translations for each language. To generate locale files, run the following rake task:

$ rake wordchuck:generate

Locale files are generated in the config/locales directory.

You can generate your locale files as often as you like. Each time you run the rake task, the old locale files are REPLACED with the new ones. It is important that you don't modify the locale files directly, as any manual changes will be overwritten next time the rake task is run.

Step 4: Install the Heroku Wordchuck add-on

The Wordchuck add-on for Heroku allows you to access your Wordchuck project directly from your Heroku app's control panel.

To install:

$ heroku addons:add wordchuck

Once you install the add-on, you will see Wordchuck appear in your list of add-ons.