Skip to content

spree-contrib/spree_globalize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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:

  1. Add the following to your Gemfile
  gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git'
  1. Run bundle install

Spree Products Translations

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.

Running the tests

If you would like to run the tests of this project, follow these steps:

  1. Clone this repo using git clone git://github.com/spree/spree_i18n
  2. Change into the directory and run bundle exec rake test_app to generate a dummy application.
  3. Run bundle exec rspec spec to run the tests.

About

Adds support for model translations (multi-language stores) using Globalize gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published