<commit_before># Spree Globalize

[![Build Status](https://travis-ci.org/spree-contrib/spree_globalize.svg?branch=master)](https://travis-ci.org/spree-contrib/spree_globalize)
[![Code Climate](https://codeclimate.com/github/spree-contrib/spree_globalize/badges/gpa.svg)](https://codeclimate.com/github/spree-contrib/spree_globalize)

This is the globalization project extracted from `spree_i18n` for [Spree Commerce][1] version 3.1+.

For previous Spree versions you can just use [spree_i18n][2].

See the [official Internationalization documentation][2] for more details.

Happy translating!

---

## Installation

Add the following to your `Gemfile`:

```ruby
gem 'spree_globalize', github: 'spree-contrib/spree_globalize', branch: 'master'
```

Run `bundle install`

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

    rails g spree:globalize:install

This will insert these lines into your spree manifest files:

```
vendor/assets/javascripts/spree/backend/all.js
//= require spree/backend/spree_globalize

vendor/assets/javascripts/spree/frontend/all.js
//= require spree/frontend/spree_globalize

vendor/assets/stylesheets/spree/frontend/all.css
*= require spree/frontend/spree_globalize
```

---

## Model Translations

This feature uses the [Globalize][3] gem to localize model data.
So far the following models are translatable:<commit_msg>Update README Gemfile istructions to solidus<commit_after># Spree Globalize

[![Build Status](https://travis-ci.org/spree-contrib/spree_globalize.svg?branch=master)](https://travis-ci.org/spree-contrib/spree_globalize)
[![Code Climate](https://codeclimate.com/github/spree-contrib/spree_globalize/badges/gpa.svg)](https://codeclimate.com/github/spree-contrib/spree_globalize)

This is the globalization project extracted from `spree_i18n` for [Spree Commerce][1] version 3.1+.

For previous Spree versions you can just use [spree_i18n][2].

See the [official Internationalization documentation][2] for more details.

Happy translating!

---

## Installation

Add the following to your `Gemfile`:

```ruby
gem 'solidus_globalize', github: 'solidusio-contrib/solidus_globalize', branch: 'master'
```

Run `bundle install`

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

    rails g spree:globalize:install

This will insert these lines into your spree manifest files:

```
vendor/assets/javascripts/spree/backend/all.js
//= require spree/backend/spree_globalize

vendor/assets/javascripts/spree/frontend/all.js
//= require spree/frontend/spree_globalize

vendor/assets/stylesheets/spree/frontend/all.css
*= require spree/frontend/spree_globalize
```

---

## Model Translations

This feature uses the [Globalize][3] gem to localize model data.
So far the following models are translatable:
{'fraction_non_alphanumeric': 0.11207796728158718, 'fraction_numerical': 0.006961364427427776, 'mean_word_length': 5.415178571428571, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7259259', 'n_tokens_mistral': 949, 'n_tokens_neox': 908, 'n_words': 234}