Skip to content


Subversion checkout URL

You can clone with
Download ZIP
I18n translation files for Spree Commerce.
Ruby HTML CSS CoffeeScript JavaScript

Merge pull request #631 from stefan694/master

added missing french translations
latest commit 64513c4180
@JDutil JDutil authored

Spree Internationalization

Build Status Code Climate

This is the Internationalization project for Spree Commerce

See the official Internationalization documentation for more details.

Happy translating!


Add the following to your Gemfile:

gem 'spree_i18n', github: 'spree-contrib/spree_i18n', branch: 'master'

Run bundle install

You can use the generator to install migrations and append spree_i18n assets to your app spree manifest file.

rails g spree_i18n:install

This will insert these lines into your spree manifest files:

In vendor/assets/javascripts/spree/frontend/all.js

//= require spree/frontend/spree_i18n

Model Translations

We removed support for translating models into a separate Gem.

Please update your Gemfile if you still need the model translations.

# Gemfile
gem 'spree_globalize', github: 'spree-contrib/spree_globalize', branch: 'master'


WARNING: If you want to keep your model translations, be sure to add the spree_globalize gem to your Gemfile before migrating the database. Otherwise you will loose your translations!

1. Migrate your database

bin/rake spree_i18n:upgrade
bin/rake db:migrate

Note: The migration automatically skips the removal of the translations tables. So it's safe to run the migration without data loss. But be sure to have the spree_globalize gem in your Gemfile, if you want to keep them.

2. Remove Assets

From vendor/assets/javascripts/spree/backend/all.js

//= require spree/backend/spree_i18n

and from vendor/assets/stylesheets/spree/backend/all.css

*= require spree/backend/spree_i18n

3. Remove Configuration

Remove all occurrences of SpreeI18n::Config.supported_locales from your code.


See corresponding guidelines

Copyright (c) 2010-2015 Spree Commerce Inc. and other contributors. released under the New BSD License

Something went wrong with that request. Please try again.