#Spree Internationalization
This is the Internationalization project for Spree Commerce
See the official Internationalization documentation for more details.
To install, simply add the Gem to your Gemfile:
- Add the following to your Gemfile
gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git'
- Run
bundle install
We've introduced a product translations feature. Follow the steps to get it working.
Point to the content branch:
gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git', :branch => 'content'
Install and run the migration to create the product translations table:
bundle exec rake railties:install:migrations
bundle exec rake db:migrate
Add the following line to admin/all.js on your app:
//= require admin/spree_i18n
Go to admin products list and click on any product. You should see a TRANSLATIONS link in the products subtabs on the right. You should be able to set name, description, meta descriptions, and meta keywords for any product on your Spree project.
If you would like to run the tests of this project, follow these steps:
- Clone this repo using
git clone git://github.com/spree/spree_i18n
- Change into the directory and run
bundle exec rake test_app
to generate a dummy application. - Run
bundle exec rspec spec
to run the tests.