Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve README with more instructions #77

Merged
merged 1 commit into from
Nov 26, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ This is the Internationalization project for [Solidus](https://solidus.io)

---

## Supported languages

We currently support the [following locales](https://github.com/solidusio-contrib/solidus_i18n/tree/master/config/locales)
by default. If you need a locale that is not in the list you can add a custom
translation file into your application by following the
[Rails translations guide](http://guides.rubyonrails.org/i18n.html#how-to-store-your-custom-translations).

## Installation

Add the following to your `Gemfile`:
Expand Down Expand Up @@ -37,6 +44,17 @@ In `vendor/assets/javascripts/spree/backend/all.js`
//= require spree/backend/solidus_i18n
```

## Set default locale

In `config/initializers/spree.rb` you will find the default locale settings
for both frontend and backend. Just replace `'en'` with your default locale
code.

## Add more languages to the frontend locale toggle

Go to Admin -> General Settings -> Localization Setting and add the locales
you want your users to be able to select from the locale toggle on the frontend.

---

## Model Translations
Expand Down