solidus_i18n 1.3.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +35 -50
- data/config/routes.rb +0 -14
- data/lib/solidus_i18n.rb +0 -5
- data/lib/solidus_i18n/engine.rb +0 -39
- data/lib/solidus_i18n/version.rb +2 -2
- data/solidus_i18n.gemspec +0 -13
- data/spec/{lib/solidus_i18n/locale_spec.rb → solidus_i18n_spec.rb} +16 -4
- data/spec/spec_helper.rb +0 -1
- metadata +3 -242
- data/app/assets/javascripts/spree/backend/edit_inline_locales.js.coffee.erb +0 -56
- data/app/assets/javascripts/spree/backend/helpers.js.coffee.erb +0 -14
- data/app/assets/javascripts/spree/backend/inline_table_locales.js.coffee +0 -16
- data/app/assets/javascripts/spree/backend/solidus_i18n.js +0 -2
- data/app/assets/javascripts/spree/backend/templates/available_locales.hbs.erb +0 -31
- data/app/assets/javascripts/spree/backend/translations.js.coffee +0 -3
- data/app/assets/javascripts/spree/frontend/locale.js.coffee +0 -3
- data/app/assets/javascripts/spree/frontend/solidus_i18n.js +0 -2
- data/app/assets/stylesheets/spree/backend/solidus_i18n.css +0 -8
- data/app/assets/stylesheets/spree/frontend/solidus_i18n.css +0 -8
- data/app/controllers/spree/admin/locales_controller.rb +0 -16
- data/app/controllers/spree/api/available_locales_controller.rb +0 -28
- data/app/controllers/spree/api/base_controller_decorator.rb +0 -3
- data/app/controllers/spree/base_controller_decorator.rb +0 -3
- data/app/controllers/spree/locale_controller_decorator.rb +0 -5
- data/app/helpers/solidus_i18n/locale_helper.rb +0 -29
- data/app/models/spree/store_decorator.rb +0 -13
- data/app/overrides/spree/admin/shared/_configuration_menu/add_i18n_tab.html.erb.deface +0 -2
- data/app/overrides/spree/shared/_main_nav_bar/locale_selector.html.erb.deface +0 -16
- data/app/views/spree/admin/locales/show.html.erb +0 -21
- data/app/views/spree/api/available_locales/show.json.jbuilder +0 -8
- data/config/initializers/country_names.rb +0 -51
- data/config/initializers/routing_filter.rb +0 -2
- data/db/migrate/20150609154031_remove_translations_from_spree_tables.rb +0 -65
- data/db/migrate/20170523151209_add_available_locales_on_store.rb +0 -14
- data/lib/generators/solidus_i18n/install/install_generator.rb +0 -27
- data/lib/solidus_i18n/configuration.rb +0 -9
- data/lib/solidus_i18n/controller_locale_helper.rb +0 -29
- data/lib/solidus_i18n/locale.rb +0 -9
- data/spec/controllers/locales_controller_spec.rb +0 -25
- data/spec/features/admin/translations_spec.rb +0 -56
- data/spec/features/russian_errors_translation_spec.rb +0 -17
- data/spec/features/translation_spec.rb +0 -31
- data/spec/features/translations_spec.rb +0 -30
- data/spec/helpers/locale_helper_spec.rb +0 -35
- data/spec/support/capybara.rb +0 -6
- data/spec/support/database_cleaner.rb +0 -23
- data/spec/support/factory_girl.rb +0 -5
- data/spec/support/i18n.rb +0 -5
- data/spec/support/spree.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bbd02ebe1aede79103a8db264d1493f3e9cb56bb62722461fed73656e24ba31
|
4
|
+
data.tar.gz: 757a07d2e2d4a0902191d8895a033d28635271f4b3e9c9d429e19ec02e49f3ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52dfde0677e5350c135c0777cd4ffc4f8a3e19e6416f362d75f3daa6462712da8192b08f6d4f9984868422e6a44390512a09415cd1ea27a9587a89a861690143
|
7
|
+
data.tar.gz: 34e0080d9502f180c87c0445e001a6fac8b974a771427c66c769e5014c0f29bd9b3c5e3d93c3fda5f912a1c220bc001e074248fbfff0926a825135c379c15316
|
data/README.md
CHANGED
@@ -1,61 +1,66 @@
|
|
1
1
|
# Solidus Internationalization
|
2
2
|
|
3
|
-
[](https://travis-ci.org/solidusio/solidus_i18n)
|
4
|
+
[](https://codeclimate.com/github/solidusio/solidus_i18n)
|
5
5
|
[](https://badge.fury.io/rb/solidus_i18n)
|
6
6
|
|
7
7
|
This is the Internationalization project for [Solidus](https://solidus.io)
|
8
8
|
|
9
9
|
---
|
10
10
|
|
11
|
-
##
|
11
|
+
## Changes in Version 2.0
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
solidus_i18n Version 2.0+ only contains translation files.
|
14
|
+
|
15
|
+
Previous versions of solidus_i18n included extra functionality like locale
|
16
|
+
selectors and which is now built in to Solidus 2.6+. Configuration for
|
17
|
+
`routing-fitler` has also been removed and must be configured manually
|
18
|
+
(See [Locale in URL](#locale-in-url)).
|
17
19
|
|
18
20
|
## Installation
|
19
21
|
|
20
22
|
Add the following to your `Gemfile`:
|
21
23
|
|
22
24
|
```ruby
|
23
|
-
gem 'solidus_i18n',
|
25
|
+
gem 'solidus_i18n', '~> 2.0'
|
26
|
+
gem 'rails-i18n', '~> 5.1'
|
27
|
+
gem 'kaminari-i18n', '~> 0.5.0'
|
24
28
|
```
|
25
29
|
|
26
|
-
|
27
|
-
|
28
|
-
You can use the generator to install migrations and append solidus_i18n assets to
|
29
|
-
your app solidus manifest file.
|
30
|
+
## Locale in URL
|
30
31
|
|
31
|
-
|
32
|
+
Older versions of solidus_i18n included the routing-filter gem and configured routes to include the locale in the URL.
|
33
|
+
This is still supported (maybe even recommended) but requires some additional configuration.
|
32
34
|
|
33
|
-
|
35
|
+
1. Add this gem to your `Gemfile`, then run `bundle install`
|
34
36
|
|
35
|
-
|
36
|
-
|
37
|
-
```
|
38
|
-
//= require spree/frontend/solidus_i18n
|
37
|
+
``` ruby
|
38
|
+
gem 'routing-filter', '~> 0.6.0'
|
39
39
|
```
|
40
40
|
|
41
|
-
|
41
|
+
2. Add `filter :locale` to your `config/routes.rb`
|
42
42
|
|
43
|
-
```
|
44
|
-
|
45
|
-
|
43
|
+
``` ruby
|
44
|
+
Rails.application.routes.draw do
|
45
|
+
filter :locale
|
46
46
|
|
47
|
-
|
47
|
+
mount Spree::Core::Engine, at: '/'
|
48
|
+
end
|
49
|
+
```
|
48
50
|
|
49
|
-
|
50
|
-
for both frontend and backend. Just replace `'en'` with your default locale
|
51
|
-
code.
|
51
|
+
3. Configure routing-fitler in `config/initializers/locale_filter.rb` (optional)
|
52
52
|
|
53
|
-
|
53
|
+
``` ruby
|
54
|
+
# Do not include the default locale in the URL
|
55
|
+
RoutingFilter::Locale.include_default_locale = false
|
56
|
+
```
|
54
57
|
|
55
|
-
|
56
|
-
you want your users to be able to select from the locale toggle on the frontend.
|
58
|
+
## Supported languages
|
57
59
|
|
58
|
-
|
60
|
+
We currently support the [following locales](https://github.com/solidusio/solidus_i18n/tree/master/config/locales)
|
61
|
+
by default. If you need a locale that is not in the list you can add a custom
|
62
|
+
translation file into your application by following the
|
63
|
+
[Rails translations guide](http://guides.rubyonrails.org/i18n.html#how-to-store-your-custom-translations).
|
59
64
|
|
60
65
|
## Updating Translations
|
61
66
|
|
@@ -69,8 +74,6 @@ Substitute <LOCALE> with your locale code (e.g: `it`).
|
|
69
74
|
This will do a cleanup and prepare `<LOCALE>.yml` with all the missing keys.
|
70
75
|
You can then write the translations and open a pull request.
|
71
76
|
|
72
|
-
---
|
73
|
-
|
74
77
|
## Model Translations
|
75
78
|
|
76
79
|
We **removed** support for translating models into [a separate Gem](https://github.com/solidusio-contrib/solidus_globalize).
|
@@ -82,24 +85,6 @@ Please update your `Gemfile` if you still need the model translations.
|
|
82
85
|
gem 'solidus_globalize', github: 'solidusio-contrib/solidus_globalize', branch: 'master'
|
83
86
|
```
|
84
87
|
|
85
|
-
---
|
86
|
-
|
87
|
-
## Upgrading
|
88
|
-
|
89
|
-
**WARNING**: If you want to keep your model translations, be sure to add the `solidus_globalize` gem to your `Gemfile` **before** migrating the database. Otherwise **you will loose your translations**!
|
90
|
-
|
91
|
-
### 1. Migrate your database
|
92
|
-
|
93
|
-
bin/rake solidus_i18n:upgrade
|
94
|
-
bin/rake db:migrate
|
95
|
-
|
96
|
-
*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 `solidus_globalize` gem in your `Gemfile`, if you want to keep them.
|
97
|
-
|
98
|
-
### 2. Remove Configuration
|
99
|
-
|
100
|
-
Remove all occurrences of `SolidusI18n::Config.supported_locales` from your code.
|
101
|
-
|
102
|
-
|
103
88
|
Contributing
|
104
89
|
------------
|
105
90
|
|
data/config/routes.rb
CHANGED
@@ -1,16 +1,2 @@
|
|
1
1
|
Spree::Core::Engine.routes.draw do
|
2
|
-
# from routing-filter gem
|
3
|
-
filter :locale
|
4
|
-
|
5
|
-
post '/locale/set', to: 'locale#set', defaults: { format: :json }, as: :set_locale
|
6
|
-
|
7
|
-
namespace :api do
|
8
|
-
scope :config do
|
9
|
-
resources :available_locales, only: [:update, :index]
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
namespace :admin do
|
14
|
-
resource :locale, only: [:show, :update]
|
15
|
-
end
|
16
2
|
end
|
data/lib/solidus_i18n.rb
CHANGED
data/lib/solidus_i18n/engine.rb
CHANGED
@@ -1,44 +1,5 @@
|
|
1
|
-
require 'routing_filter'
|
2
|
-
require 'kaminari-i18n/engine'
|
3
|
-
|
4
1
|
module SolidusI18n
|
5
2
|
class Engine < Rails::Engine
|
6
3
|
engine_name 'solidus_i18n'
|
7
|
-
|
8
|
-
config.autoload_paths += %W(#{config.root}/lib)
|
9
|
-
|
10
|
-
initializer 'solidus.i18n' do |app|
|
11
|
-
SolidusI18n::Engine.instance_eval do
|
12
|
-
pattern = pattern_from app.config.i18n.available_locales
|
13
|
-
|
14
|
-
add("config/locales/#{pattern}/*.{rb,yml}")
|
15
|
-
add("config/locales/#{pattern}.{rb,yml}")
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
initializer 'solidus.i18n.environment', before: :load_config_initializers do |app|
|
20
|
-
I18n.locale = app.config.i18n.default_locale if app.config.i18n.default_locale
|
21
|
-
SolidusI18n::Config = SolidusI18n::Configuration.new
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.activate
|
25
|
-
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
|
26
|
-
Rails.configuration.cache_classes ? require(c) : load(c)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
config.to_prepare(&method(:activate).to_proc)
|
31
|
-
|
32
|
-
protected
|
33
|
-
|
34
|
-
def self.add(pattern)
|
35
|
-
files = Dir[File.join(File.dirname(__FILE__), '../..', pattern)]
|
36
|
-
I18n.load_path.concat(files)
|
37
|
-
end
|
38
|
-
|
39
|
-
def self.pattern_from(args)
|
40
|
-
array = Array(args || [])
|
41
|
-
array.blank? ? '*' : "{#{array.join ','}}"
|
42
|
-
end
|
43
4
|
end
|
44
5
|
end
|
data/lib/solidus_i18n/version.rb
CHANGED
data/solidus_i18n.gemspec
CHANGED
@@ -23,21 +23,8 @@ Gem::Specification.new do |s|
|
|
23
23
|
|
24
24
|
s.has_rdoc = false
|
25
25
|
|
26
|
-
s.add_runtime_dependency 'i18n_data', '~> 0.7.0'
|
27
|
-
s.add_runtime_dependency 'rails-i18n', ['>= 4.0.1', '< 6']
|
28
|
-
s.add_runtime_dependency 'kaminari-i18n', '~> 0.5.0'
|
29
|
-
s.add_runtime_dependency 'routing-filter', '~> 0.6.0'
|
30
26
|
s.add_runtime_dependency 'solidus_core', ['>= 1.1', '< 3']
|
31
|
-
s.add_runtime_dependency 'solidus_support'
|
32
|
-
s.add_runtime_dependency 'deface', '~> 1.0'
|
33
27
|
|
34
|
-
s.add_development_dependency 'byebug'
|
35
|
-
s.add_development_dependency 'capybara', '~> 2.17'
|
36
|
-
s.add_development_dependency 'selenium-webdriver', '~> 3.9'
|
37
|
-
s.add_development_dependency 'database_cleaner', '~> 1.3'
|
38
|
-
s.add_development_dependency 'factory_bot', '~> 4.5'
|
39
|
-
s.add_development_dependency 'ffaker', '>= 1.25.0'
|
40
|
-
s.add_development_dependency 'poltergeist', '~> 1.17'
|
41
28
|
s.add_development_dependency 'pry-rails', '>= 0.3.0'
|
42
29
|
s.add_development_dependency 'rubocop', '>= 0.24.1'
|
43
30
|
s.add_development_dependency 'rspec-rails', '~> 3.1'
|
@@ -1,10 +1,14 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
RSpec.describe
|
4
|
-
describe '
|
5
|
-
subject
|
3
|
+
RSpec.describe "solidus_i18n" do
|
4
|
+
describe 'defined locales' do
|
5
|
+
subject do
|
6
|
+
I18n.available_locales.select do |locale|
|
7
|
+
I18n.t('spree.i18n.this_file_language', locale: locale, fallback: false, default: nil)
|
8
|
+
end
|
9
|
+
end
|
6
10
|
|
7
|
-
it "
|
11
|
+
it "contains the added locales" do
|
8
12
|
# Add to this list when adding/removing locales
|
9
13
|
expect(subject).to match_array %i[
|
10
14
|
en
|
@@ -49,5 +53,13 @@ RSpec.describe SolidusI18n::Locale do
|
|
49
53
|
sl-SI
|
50
54
|
]
|
51
55
|
end
|
56
|
+
|
57
|
+
it "has a unique description for each locale" do
|
58
|
+
descriptions = subject.map do |locale|
|
59
|
+
I18n.t('spree.i18n.this_file_language', locale: locale)
|
60
|
+
end
|
61
|
+
|
62
|
+
expect(descriptions.uniq).to eq(descriptions)
|
63
|
+
end
|
52
64
|
end
|
53
65
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas von Deyen
|
@@ -10,68 +10,6 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2018-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: i18n_data
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.7.0
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 0.7.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rails-i18n
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 4.0.1
|
34
|
-
- - "<"
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: '6'
|
37
|
-
type: :runtime
|
38
|
-
prerelease: false
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 4.0.1
|
44
|
-
- - "<"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '6'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: kaminari-i18n
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 0.5.0
|
54
|
-
type: :runtime
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 0.5.0
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: routing-filter
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: 0.6.0
|
68
|
-
type: :runtime
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 0.6.0
|
75
13
|
- !ruby/object:Gem::Dependency
|
76
14
|
name: solidus_core
|
77
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,132 +30,6 @@ dependencies:
|
|
92
30
|
- - "<"
|
93
31
|
- !ruby/object:Gem::Version
|
94
32
|
version: '3'
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: solidus_support
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
98
|
-
requirements:
|
99
|
-
- - ">="
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
|
-
type: :runtime
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
- - ">="
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: '0'
|
109
|
-
- !ruby/object:Gem::Dependency
|
110
|
-
name: deface
|
111
|
-
requirement: !ruby/object:Gem::Requirement
|
112
|
-
requirements:
|
113
|
-
- - "~>"
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: '1.0'
|
116
|
-
type: :runtime
|
117
|
-
prerelease: false
|
118
|
-
version_requirements: !ruby/object:Gem::Requirement
|
119
|
-
requirements:
|
120
|
-
- - "~>"
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: '1.0'
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
name: byebug
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - ">="
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '0'
|
130
|
-
type: :development
|
131
|
-
prerelease: false
|
132
|
-
version_requirements: !ruby/object:Gem::Requirement
|
133
|
-
requirements:
|
134
|
-
- - ">="
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
version: '0'
|
137
|
-
- !ruby/object:Gem::Dependency
|
138
|
-
name: capybara
|
139
|
-
requirement: !ruby/object:Gem::Requirement
|
140
|
-
requirements:
|
141
|
-
- - "~>"
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version: '2.17'
|
144
|
-
type: :development
|
145
|
-
prerelease: false
|
146
|
-
version_requirements: !ruby/object:Gem::Requirement
|
147
|
-
requirements:
|
148
|
-
- - "~>"
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
version: '2.17'
|
151
|
-
- !ruby/object:Gem::Dependency
|
152
|
-
name: selenium-webdriver
|
153
|
-
requirement: !ruby/object:Gem::Requirement
|
154
|
-
requirements:
|
155
|
-
- - "~>"
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '3.9'
|
158
|
-
type: :development
|
159
|
-
prerelease: false
|
160
|
-
version_requirements: !ruby/object:Gem::Requirement
|
161
|
-
requirements:
|
162
|
-
- - "~>"
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
version: '3.9'
|
165
|
-
- !ruby/object:Gem::Dependency
|
166
|
-
name: database_cleaner
|
167
|
-
requirement: !ruby/object:Gem::Requirement
|
168
|
-
requirements:
|
169
|
-
- - "~>"
|
170
|
-
- !ruby/object:Gem::Version
|
171
|
-
version: '1.3'
|
172
|
-
type: :development
|
173
|
-
prerelease: false
|
174
|
-
version_requirements: !ruby/object:Gem::Requirement
|
175
|
-
requirements:
|
176
|
-
- - "~>"
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
version: '1.3'
|
179
|
-
- !ruby/object:Gem::Dependency
|
180
|
-
name: factory_bot
|
181
|
-
requirement: !ruby/object:Gem::Requirement
|
182
|
-
requirements:
|
183
|
-
- - "~>"
|
184
|
-
- !ruby/object:Gem::Version
|
185
|
-
version: '4.5'
|
186
|
-
type: :development
|
187
|
-
prerelease: false
|
188
|
-
version_requirements: !ruby/object:Gem::Requirement
|
189
|
-
requirements:
|
190
|
-
- - "~>"
|
191
|
-
- !ruby/object:Gem::Version
|
192
|
-
version: '4.5'
|
193
|
-
- !ruby/object:Gem::Dependency
|
194
|
-
name: ffaker
|
195
|
-
requirement: !ruby/object:Gem::Requirement
|
196
|
-
requirements:
|
197
|
-
- - ">="
|
198
|
-
- !ruby/object:Gem::Version
|
199
|
-
version: 1.25.0
|
200
|
-
type: :development
|
201
|
-
prerelease: false
|
202
|
-
version_requirements: !ruby/object:Gem::Requirement
|
203
|
-
requirements:
|
204
|
-
- - ">="
|
205
|
-
- !ruby/object:Gem::Version
|
206
|
-
version: 1.25.0
|
207
|
-
- !ruby/object:Gem::Dependency
|
208
|
-
name: poltergeist
|
209
|
-
requirement: !ruby/object:Gem::Requirement
|
210
|
-
requirements:
|
211
|
-
- - "~>"
|
212
|
-
- !ruby/object:Gem::Version
|
213
|
-
version: '1.17'
|
214
|
-
type: :development
|
215
|
-
prerelease: false
|
216
|
-
version_requirements: !ruby/object:Gem::Requirement
|
217
|
-
requirements:
|
218
|
-
- - "~>"
|
219
|
-
- !ruby/object:Gem::Version
|
220
|
-
version: '1.17'
|
221
33
|
- !ruby/object:Gem::Dependency
|
222
34
|
name: pry-rails
|
223
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -289,30 +101,7 @@ files:
|
|
289
101
|
- LICENSE.md
|
290
102
|
- README.md
|
291
103
|
- Rakefile
|
292
|
-
- app/assets/javascripts/spree/backend/edit_inline_locales.js.coffee.erb
|
293
|
-
- app/assets/javascripts/spree/backend/helpers.js.coffee.erb
|
294
|
-
- app/assets/javascripts/spree/backend/inline_table_locales.js.coffee
|
295
|
-
- app/assets/javascripts/spree/backend/solidus_i18n.js
|
296
|
-
- app/assets/javascripts/spree/backend/templates/available_locales.hbs.erb
|
297
|
-
- app/assets/javascripts/spree/backend/translations.js.coffee
|
298
|
-
- app/assets/javascripts/spree/frontend/locale.js.coffee
|
299
|
-
- app/assets/javascripts/spree/frontend/solidus_i18n.js
|
300
|
-
- app/assets/stylesheets/spree/backend/solidus_i18n.css
|
301
|
-
- app/assets/stylesheets/spree/frontend/solidus_i18n.css
|
302
|
-
- app/controllers/spree/admin/locales_controller.rb
|
303
|
-
- app/controllers/spree/api/available_locales_controller.rb
|
304
|
-
- app/controllers/spree/api/base_controller_decorator.rb
|
305
|
-
- app/controllers/spree/base_controller_decorator.rb
|
306
|
-
- app/controllers/spree/locale_controller_decorator.rb
|
307
|
-
- app/helpers/solidus_i18n/locale_helper.rb
|
308
|
-
- app/models/spree/store_decorator.rb
|
309
|
-
- app/overrides/spree/admin/shared/_configuration_menu/add_i18n_tab.html.erb.deface
|
310
|
-
- app/overrides/spree/shared/_main_nav_bar/locale_selector.html.erb.deface
|
311
|
-
- app/views/spree/admin/locales/show.html.erb
|
312
|
-
- app/views/spree/api/available_locales/show.json.jbuilder
|
313
104
|
- bin/rails
|
314
|
-
- config/initializers/country_names.rb
|
315
|
-
- config/initializers/routing_filter.rb
|
316
105
|
- config/locales/bg.yml
|
317
106
|
- config/locales/ca.yml
|
318
107
|
- config/locales/cs.yml
|
@@ -353,30 +142,13 @@ files:
|
|
353
142
|
- config/locales/zh-CN.yml
|
354
143
|
- config/locales/zh-TW.yml
|
355
144
|
- config/routes.rb
|
356
|
-
- db/migrate/20150609154031_remove_translations_from_spree_tables.rb
|
357
|
-
- db/migrate/20170523151209_add_available_locales_on_store.rb
|
358
|
-
- lib/generators/solidus_i18n/install/install_generator.rb
|
359
145
|
- lib/solidus_i18n.rb
|
360
|
-
- lib/solidus_i18n/configuration.rb
|
361
|
-
- lib/solidus_i18n/controller_locale_helper.rb
|
362
146
|
- lib/solidus_i18n/engine.rb
|
363
|
-
- lib/solidus_i18n/locale.rb
|
364
147
|
- lib/solidus_i18n/version.rb
|
365
148
|
- lib/tasks/solidus_i18n/upgrade.rake
|
366
149
|
- solidus_i18n.gemspec
|
367
|
-
- spec/
|
368
|
-
- spec/features/admin/translations_spec.rb
|
369
|
-
- spec/features/russian_errors_translation_spec.rb
|
370
|
-
- spec/features/translation_spec.rb
|
371
|
-
- spec/features/translations_spec.rb
|
372
|
-
- spec/helpers/locale_helper_spec.rb
|
373
|
-
- spec/lib/solidus_i18n/locale_spec.rb
|
150
|
+
- spec/solidus_i18n_spec.rb
|
374
151
|
- spec/spec_helper.rb
|
375
|
-
- spec/support/capybara.rb
|
376
|
-
- spec/support/database_cleaner.rb
|
377
|
-
- spec/support/factory_girl.rb
|
378
|
-
- spec/support/i18n.rb
|
379
|
-
- spec/support/spree.rb
|
380
152
|
homepage: https://solidus.io
|
381
153
|
licenses:
|
382
154
|
- BSD-3
|
@@ -403,16 +175,5 @@ signing_key:
|
|
403
175
|
specification_version: 4
|
404
176
|
summary: Provides locale information for use in Solidus.
|
405
177
|
test_files:
|
406
|
-
- spec/
|
407
|
-
- spec/features/admin/translations_spec.rb
|
408
|
-
- spec/features/russian_errors_translation_spec.rb
|
409
|
-
- spec/features/translation_spec.rb
|
410
|
-
- spec/features/translations_spec.rb
|
411
|
-
- spec/helpers/locale_helper_spec.rb
|
412
|
-
- spec/lib/solidus_i18n/locale_spec.rb
|
178
|
+
- spec/solidus_i18n_spec.rb
|
413
179
|
- spec/spec_helper.rb
|
414
|
-
- spec/support/capybara.rb
|
415
|
-
- spec/support/database_cleaner.rb
|
416
|
-
- spec/support/factory_girl.rb
|
417
|
-
- spec/support/i18n.rb
|
418
|
-
- spec/support/spree.rb
|