spree_i18n 1.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/.rspec +3 -0
- data/.rubocop.yml +7 -0
- data/.travis.yml +44 -0
- data/Appraisals +9 -0
- data/CONTRIBUTING.md +81 -0
- data/Gemfile +6 -0
- data/LICENSE.md +26 -0
- data/README.md +95 -9
- data/Rakefile +86 -0
- data/bin/rails +7 -0
- data/config/initializers/country_names.rb +51 -0
- data/config/locales/ar.yml +1341 -0
- data/config/locales/be.yml +1419 -0
- data/config/locales/bg.yml +1441 -0
- data/config/locales/ca.yml +1253 -1126
- data/config/locales/cs.yml +1363 -0
- data/config/locales/da.yml +1330 -1191
- data/config/locales/de-CH.yml +1284 -1202
- data/config/locales/de.yml +1928 -1113
- data/config/locales/en-AU.yml +1241 -1113
- data/config/locales/en-GB.yml +1249 -1117
- data/config/locales/en-IN.yml +1241 -1111
- data/config/locales/en-NZ.yml +1248 -1120
- data/config/locales/es-CL.yml +1398 -0
- data/config/locales/es-EC.yml +1338 -0
- data/config/locales/es-MX.yml +1327 -1196
- data/config/locales/es.yml +1785 -1195
- data/config/locales/et.yml +1246 -1136
- data/config/locales/fa.yml +1139 -1185
- data/config/locales/fi.yml +1362 -1200
- data/config/locales/fr.yml +1952 -1142
- data/config/locales/gr.yml +1336 -0
- data/config/locales/id.yml +1335 -0
- data/config/locales/it.yml +1391 -1187
- data/config/locales/ja.yml +1336 -0
- data/config/locales/km.yml +1358 -0
- data/config/locales/ko.yml +1292 -1204
- data/config/locales/ku.yml +1338 -0
- data/config/locales/lt.yml +1497 -1199
- data/config/locales/lv.yml +1319 -1194
- data/config/locales/nb.yml +1339 -0
- data/config/locales/nl.yml +1361 -1124
- data/config/locales/pl.yml +1640 -1139
- data/config/locales/pt-BR.yml +1512 -1196
- data/config/locales/pt.yml +1290 -0
- data/config/locales/ro.yml +1335 -0
- data/config/locales/ru.yml +1396 -1115
- data/config/locales/sk.yml +1339 -1200
- data/config/locales/sl-SI.yml +1286 -1204
- data/config/locales/sv.yml +1559 -0
- data/config/locales/th.yml +1319 -1195
- data/config/locales/tr.yml +1291 -0
- data/config/locales/uk.yml +1316 -1075
- data/config/locales/vi.yml +1296 -0
- data/config/locales/zh-CN.yml +1367 -1199
- data/config/locales/zh-TW.yml +1821 -1199
- data/gemfiles/spree_4_2.gemfile +8 -0
- data/gemfiles/spree_master.gemfile +8 -0
- data/lib/generators/spree_i18n/install/install_generator.rb +6 -0
- data/lib/spree/i18n_utils.rb +26 -20
- data/lib/spree_i18n.rb +6 -1
- data/lib/spree_i18n/engine.rb +43 -0
- data/lib/spree_i18n/locale.rb +13 -0
- data/lib/spree_i18n/version.rb +17 -0
- data/lib/tasks/spree_i18n/upgrade.rake +43 -0
- data/spec/features/russian_errors_translation_spec.rb +16 -0
- data/spec/features/translation_spec.rb +38 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/support/i18n.rb +5 -0
- data/spree_i18n.gemspec +31 -0
- metadata +94 -110
- data/config/locales/cs-CZ.yml +0 -1206
- data/config/locales/il.yml +0 -1206
- data/config/locales/ja/spree_api.yml +0 -14
- data/config/locales/ja/spree_auth.yml +0 -46
- data/config/locales/ja/spree_core.rb +0 -16
- data/config/locales/ja/spree_core.yml +0 -1071
- data/config/locales/ja/spree_dash.yml +0 -5
- data/config/locales/ja/spree_promo.yml +0 -88
- data/config/locales/nb-NO.yml +0 -1206
- data/config/locales/nl-BE.yml +0 -1206
- data/config/locales/pt-PT.yml +0 -1206
- data/config/locales/sv-SE.yml +0 -1210
- data/config/locales/vn.yml +0 -1206
- data/default/spree_api.yml +0 -21
- data/default/spree_auth.yml +0 -46
- data/default/spree_core.yml +0 -1123
- data/default/spree_dash.yml +0 -11
- data/default/spree_promo.yml +0 -92
- data/lib/spree_i18n/railtie.rb +0 -24
- data/lib/tasks/i18n.rake +0 -107
data/lib/spree/i18n_utils.rb
CHANGED
@@ -2,49 +2,55 @@ require 'active_support/core_ext'
|
|
2
2
|
|
3
3
|
module Spree
|
4
4
|
module I18nUtils
|
5
|
-
|
6
5
|
# Retrieve comments, translation data in hash form
|
7
6
|
def read_file(filename, basename)
|
8
|
-
|
7
|
+
# Add error checking for failed file read?
|
8
|
+
(comments, data) = IO.read(filename).split(/#{basename}:\s*\n/)
|
9
9
|
return comments, create_hash(data)
|
10
10
|
end
|
11
11
|
module_function :read_file
|
12
12
|
|
13
13
|
# Creates hash of translation data
|
14
14
|
def create_hash(data)
|
15
|
-
words =
|
16
|
-
return words
|
17
|
-
parent =
|
15
|
+
words = {}
|
16
|
+
return words unless data
|
17
|
+
parent = []
|
18
18
|
previous_key = 'base'
|
19
19
|
data.split("\n").each do |w|
|
20
|
-
next if w.strip.blank? || w.strip[0]=='#'
|
20
|
+
next if w.strip.blank? || w.strip[0] == '#'
|
21
21
|
(key, value) = w.split(':', 2)
|
22
22
|
value ||= ''
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
23
|
+
# Determine level of current key in comparison to parent array
|
24
|
+
shift = (key =~ /\w/) / 2 - parent.size
|
25
|
+
key = key.sub(/^\s+/, '')
|
26
|
+
# If key is child of previous key, add previous key as parent
|
27
|
+
parent << previous_key if shift > 0
|
28
|
+
# If key is not related to previous key, remove parent keys
|
29
|
+
(shift*-1).times { parent.pop } if shift < 0
|
30
|
+
# Track key in case next key is child of this key
|
31
|
+
previous_key = key
|
32
|
+
words[parent.join(':') + ':' + key] = value
|
29
33
|
end
|
30
34
|
words
|
31
35
|
end
|
32
36
|
module_function :create_hash
|
33
37
|
|
34
38
|
# Writes to file from translation data hash structure
|
35
|
-
def write_file(filename,basename,
|
36
|
-
File.open(filename,
|
37
|
-
log.puts(
|
38
|
-
words.sort.each do |k,v|
|
39
|
+
def write_file(filename, basename, _comments, words, comment_values = true, _fallback_values = {})
|
40
|
+
File.open(filename, 'w') do |log|
|
41
|
+
log.puts(basename + ": \n")
|
42
|
+
words.sort.each do |k, v|
|
39
43
|
keys = k.split(':')
|
40
|
-
|
44
|
+
# Add indentation for children keys
|
45
|
+
(keys.size - 1).times do
|
46
|
+
keys[keys.size - 1] = ' ' + keys[keys.size - 1]
|
47
|
+
end
|
41
48
|
value = v.strip
|
42
|
-
value = (
|
43
|
-
log.puts "#{keys[keys.size-1]}: #{value}\n"
|
49
|
+
value = ('#' + value) if comment_values && !value.blank?
|
50
|
+
log.puts "#{keys[keys.size - 1]}: #{value}\n"
|
44
51
|
end
|
45
52
|
end
|
46
53
|
end
|
47
54
|
module_function :write_file
|
48
|
-
|
49
55
|
end
|
50
56
|
end
|
data/lib/spree_i18n.rb
CHANGED
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'kaminari-i18n/engine'
|
2
|
+
|
3
|
+
module SpreeI18n
|
4
|
+
class Engine < Rails::Engine
|
5
|
+
engine_name 'spree_i18n'
|
6
|
+
|
7
|
+
config.autoload_paths += %W(#{config.root}/lib)
|
8
|
+
|
9
|
+
initializer 'spree-i18n' do |app|
|
10
|
+
SpreeI18n::Engine.instance_eval do
|
11
|
+
pattern = pattern_from app.config.i18n.available_locales
|
12
|
+
|
13
|
+
add("config/locales/#{pattern}/*.{rb,yml}")
|
14
|
+
add("config/locales/#{pattern}.{rb,yml}")
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
initializer 'spree_i18n.environment', before: :load_config_initializers do |app|
|
19
|
+
app.config.i18n.fallbacks = true
|
20
|
+
I18n.locale = app.config.i18n.default_locale if app.config.i18n.default_locale
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.activate
|
24
|
+
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
|
25
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
config.to_prepare(&method(:activate).to_proc)
|
30
|
+
|
31
|
+
protected
|
32
|
+
|
33
|
+
def self.add(pattern)
|
34
|
+
files = Dir[File.join(File.dirname(__FILE__), '../..', pattern)]
|
35
|
+
I18n.load_path.concat(files)
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.pattern_from(args)
|
39
|
+
array = Array(args || [])
|
40
|
+
array.blank? ? '*' : "{#{array.join ','}}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module SpreeI18n
|
2
|
+
module_function
|
3
|
+
|
4
|
+
# Returns the version of the currently loaded SpreeI18n as a
|
5
|
+
# <tt>Gem::Version</tt>.
|
6
|
+
def version
|
7
|
+
Gem::Version.new Version::STRING
|
8
|
+
end
|
9
|
+
|
10
|
+
module Version
|
11
|
+
MAJOR = 5
|
12
|
+
MINOR = 0
|
13
|
+
TINY = 0
|
14
|
+
|
15
|
+
STRING = [MAJOR, MINOR, TINY].compact.join('.')
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
namespace :spree_i18n do
|
4
|
+
desc 'Upgrades to version without globalize.'
|
5
|
+
task upgrade: :environment do
|
6
|
+
files = %w(
|
7
|
+
add_translations_to_main_models
|
8
|
+
add_translations_to_product_permalink
|
9
|
+
add_translations_to_option_value
|
10
|
+
rename_activator_translations_to_promotion_translations
|
11
|
+
update_spree_product_translations
|
12
|
+
add_translations_to_product_properties
|
13
|
+
remove_null_constraints_from_spree_tables
|
14
|
+
add_deleted_at_to_translation_tables
|
15
|
+
add_translations_to_store
|
16
|
+
).collect do |file_name|
|
17
|
+
Dir.glob Rails.root.join('db', 'migrate', "*_#{file_name}*.rb")
|
18
|
+
end.flatten
|
19
|
+
|
20
|
+
# Delete old migrations
|
21
|
+
FileUtils.rm files
|
22
|
+
|
23
|
+
# Install new migrations
|
24
|
+
Rake::Task['spree_i18n:install:migrations'].invoke
|
25
|
+
|
26
|
+
puts <<-DESC
|
27
|
+
Upgraded migrations successfully.
|
28
|
+
|
29
|
+
Now please remove these lines from your vendor/assets folder:
|
30
|
+
|
31
|
+
From `vendor/assets/javascripts/spree/backend/all.js`
|
32
|
+
|
33
|
+
//= require spree/backend/spree_i18n
|
34
|
+
|
35
|
+
and from `vendor/assets/stylesheets/spree/backend/all.css`
|
36
|
+
|
37
|
+
*= require spree/backend/spree_i18n
|
38
|
+
|
39
|
+
Don't forget to run `rake db:migrate` now.
|
40
|
+
|
41
|
+
DESC
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
RSpec.describe 'Russian errors translations' do
|
4
|
+
def translation(count)
|
5
|
+
Spree.t(:errors_prohibited_this_record_from_being_saved, count: count)
|
6
|
+
end
|
7
|
+
|
8
|
+
context 'when current locale is Russian' do
|
9
|
+
it 'translation is available' do
|
10
|
+
I18n.locale = :ru
|
11
|
+
expect(translation(1)).to eq 'Одна ошибка не позволяет сохранить запись в базе'
|
12
|
+
expect(translation(3)).to eq '3 ошибки не позволяют сохранить запись в базе'
|
13
|
+
expect(translation(10)).to eq '10 ошибок не позволяют сохранить запись в базе'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
RSpec.describe 'Translation' do
|
4
|
+
def translation
|
5
|
+
I18n.t('activerecord.attributes.spree/address.zipcode')
|
6
|
+
end
|
7
|
+
|
8
|
+
context 'when current locale is en' do
|
9
|
+
it 'translation is available' do
|
10
|
+
I18n.locale = :en
|
11
|
+
expect(translation).to eq 'Zip Code'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
# German is chosen as an example of language whose translations are found in a file.
|
16
|
+
context 'when current locale is German' do
|
17
|
+
it 'translation is available' do
|
18
|
+
I18n.locale = :de
|
19
|
+
expect(translation).to eq 'PLZ'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# Chilean spanish is chosen
|
24
|
+
context 'when current locale is Chilean Spanish' do
|
25
|
+
it 'translation is available' do
|
26
|
+
I18n.locale = :'es-CL'
|
27
|
+
expect(translation).to eq 'Código Postal'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Swedish is chosen
|
32
|
+
context 'when current locale is Swedish' do
|
33
|
+
it 'translation is available' do
|
34
|
+
I18n.locale = :'sv'
|
35
|
+
expect(translation).to eq 'Postnummer'
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV['RAILS_ENV'] = 'test'
|
3
|
+
|
4
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
5
|
+
|
6
|
+
require 'spree_dev_tools/rspec/spec_helper'
|
7
|
+
|
8
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
9
|
+
# in spec/support/ and its subdirectories.
|
10
|
+
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].sort.each { |f| require f }
|
data/spree_i18n.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib/', __FILE__)
|
3
|
+
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
require 'spree_i18n/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.name = 'spree_i18n'
|
10
|
+
s.version = SpreeI18n.version
|
11
|
+
s.summary = 'Provides locale information for use in Spree.'
|
12
|
+
s.description = s.summary
|
13
|
+
|
14
|
+
s.author = 'Sean Schofield'
|
15
|
+
s.email = 'sean.schofield@gmail.com'
|
16
|
+
s.homepage = 'http://spreecommerce.com'
|
17
|
+
s.license = 'BSD-3'
|
18
|
+
|
19
|
+
s.files = `git ls-files`.split("\n")
|
20
|
+
s.test_files = `git ls-files -- spec/*`.split("\n")
|
21
|
+
s.require_path = 'lib'
|
22
|
+
s.requirements << 'none'
|
23
|
+
|
24
|
+
s.add_runtime_dependency 'i18n_data'
|
25
|
+
s.add_runtime_dependency 'rails-i18n'
|
26
|
+
s.add_runtime_dependency 'kaminari-i18n'
|
27
|
+
s.add_runtime_dependency 'spree_core', '>= 4.2.0.rc3', '< 5.0'
|
28
|
+
s.add_runtime_dependency 'spree_extension'
|
29
|
+
|
30
|
+
s.add_development_dependency 'spree_dev_tools'
|
31
|
+
end
|
metadata
CHANGED
@@ -1,158 +1,128 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 5.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Sean Schofield
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2021-01-26 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: i18n_data
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
19
|
+
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
26
|
+
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name: i18n
|
28
|
+
name: rails-i18n
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: '0
|
33
|
+
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: '0
|
40
|
+
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
42
|
+
name: kaminari-i18n
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
54
|
-
type: :
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
54
|
+
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
56
|
+
name: spree_core
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
|
-
version: 2.
|
70
|
-
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 2.7.0
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: i18n-spec
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
61
|
+
version: 4.2.0.rc3
|
62
|
+
- - "<"
|
84
63
|
- !ruby/object:Gem::Version
|
85
|
-
version: '0
|
86
|
-
type: :
|
64
|
+
version: '5.0'
|
65
|
+
type: :runtime
|
87
66
|
prerelease: false
|
88
67
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
68
|
requirements:
|
91
|
-
- -
|
69
|
+
- - ">="
|
92
70
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
94
|
-
-
|
95
|
-
name: spork
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ~>
|
71
|
+
version: 4.2.0.rc3
|
72
|
+
- - "<"
|
100
73
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ~>
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 1.0rc
|
74
|
+
version: '5.0'
|
110
75
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
76
|
+
name: spree_extension
|
112
77
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
78
|
requirements:
|
115
|
-
- -
|
79
|
+
- - ">="
|
116
80
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
118
|
-
type: :
|
81
|
+
version: '0'
|
82
|
+
type: :runtime
|
119
83
|
prerelease: false
|
120
84
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
85
|
requirements:
|
123
|
-
- -
|
86
|
+
- - ">="
|
124
87
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
88
|
+
version: '0'
|
126
89
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
90
|
+
name: spree_dev_tools
|
128
91
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
92
|
requirements:
|
131
|
-
- -
|
93
|
+
- - ">="
|
132
94
|
- !ruby/object:Gem::Version
|
133
95
|
version: '0'
|
134
96
|
type: :development
|
135
97
|
prerelease: false
|
136
98
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
99
|
requirements:
|
139
|
-
- -
|
100
|
+
- - ">="
|
140
101
|
- !ruby/object:Gem::Version
|
141
102
|
version: '0'
|
142
103
|
description: Provides locale information for use in Spree.
|
143
|
-
email: sean@
|
104
|
+
email: sean.schofield@gmail.com
|
144
105
|
executables: []
|
145
106
|
extensions: []
|
146
107
|
extra_rdoc_files: []
|
147
108
|
files:
|
109
|
+
- ".gitignore"
|
110
|
+
- ".rspec"
|
111
|
+
- ".rubocop.yml"
|
112
|
+
- ".travis.yml"
|
113
|
+
- Appraisals
|
114
|
+
- CONTRIBUTING.md
|
115
|
+
- Gemfile
|
116
|
+
- LICENSE.md
|
148
117
|
- README.md
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
118
|
+
- Rakefile
|
119
|
+
- bin/rails
|
120
|
+
- config/initializers/country_names.rb
|
121
|
+
- config/locales/ar.yml
|
122
|
+
- config/locales/be.yml
|
123
|
+
- config/locales/bg.yml
|
154
124
|
- config/locales/ca.yml
|
155
|
-
- config/locales/cs
|
125
|
+
- config/locales/cs.yml
|
156
126
|
- config/locales/da.yml
|
157
127
|
- config/locales/de-CH.yml
|
158
128
|
- config/locales/de.yml
|
@@ -160,65 +130,79 @@ files:
|
|
160
130
|
- config/locales/en-GB.yml
|
161
131
|
- config/locales/en-IN.yml
|
162
132
|
- config/locales/en-NZ.yml
|
133
|
+
- config/locales/es-CL.yml
|
134
|
+
- config/locales/es-EC.yml
|
163
135
|
- config/locales/es-MX.yml
|
164
136
|
- config/locales/es.yml
|
165
137
|
- config/locales/et.yml
|
166
138
|
- config/locales/fa.yml
|
167
139
|
- config/locales/fi.yml
|
168
140
|
- config/locales/fr.yml
|
169
|
-
- config/locales/
|
141
|
+
- config/locales/gr.yml
|
142
|
+
- config/locales/id.yml
|
170
143
|
- config/locales/it.yml
|
171
|
-
- config/locales/ja
|
172
|
-
- config/locales/
|
173
|
-
- config/locales/ja/spree_core.rb
|
174
|
-
- config/locales/ja/spree_core.yml
|
175
|
-
- config/locales/ja/spree_dash.yml
|
176
|
-
- config/locales/ja/spree_promo.yml
|
144
|
+
- config/locales/ja.yml
|
145
|
+
- config/locales/km.yml
|
177
146
|
- config/locales/ko.yml
|
147
|
+
- config/locales/ku.yml
|
178
148
|
- config/locales/lt.yml
|
179
149
|
- config/locales/lv.yml
|
180
|
-
- config/locales/nb
|
181
|
-
- config/locales/nl-BE.yml
|
150
|
+
- config/locales/nb.yml
|
182
151
|
- config/locales/nl.yml
|
183
152
|
- config/locales/pl.yml
|
184
153
|
- config/locales/pt-BR.yml
|
185
|
-
- config/locales/pt
|
154
|
+
- config/locales/pt.yml
|
155
|
+
- config/locales/ro.yml
|
186
156
|
- config/locales/ru.yml
|
187
157
|
- config/locales/sk.yml
|
188
158
|
- config/locales/sl-SI.yml
|
189
|
-
- config/locales/sv
|
159
|
+
- config/locales/sv.yml
|
190
160
|
- config/locales/th.yml
|
161
|
+
- config/locales/tr.yml
|
191
162
|
- config/locales/uk.yml
|
192
|
-
- config/locales/
|
163
|
+
- config/locales/vi.yml
|
193
164
|
- config/locales/zh-CN.yml
|
194
165
|
- config/locales/zh-TW.yml
|
166
|
+
- gemfiles/spree_4_2.gemfile
|
167
|
+
- gemfiles/spree_master.gemfile
|
168
|
+
- lib/generators/spree_i18n/install/install_generator.rb
|
195
169
|
- lib/spree/i18n_utils.rb
|
196
|
-
- lib/spree_i18n/railtie.rb
|
197
170
|
- lib/spree_i18n.rb
|
198
|
-
- lib/
|
171
|
+
- lib/spree_i18n/engine.rb
|
172
|
+
- lib/spree_i18n/locale.rb
|
173
|
+
- lib/spree_i18n/version.rb
|
174
|
+
- lib/tasks/spree_i18n/upgrade.rake
|
175
|
+
- spec/features/russian_errors_translation_spec.rb
|
176
|
+
- spec/features/translation_spec.rb
|
177
|
+
- spec/spec_helper.rb
|
178
|
+
- spec/support/i18n.rb
|
179
|
+
- spree_i18n.gemspec
|
199
180
|
homepage: http://spreecommerce.com
|
200
|
-
licenses:
|
201
|
-
|
181
|
+
licenses:
|
182
|
+
- BSD-3
|
183
|
+
metadata: {}
|
184
|
+
post_install_message:
|
202
185
|
rdoc_options: []
|
203
186
|
require_paths:
|
204
187
|
- lib
|
205
188
|
required_ruby_version: !ruby/object:Gem::Requirement
|
206
|
-
none: false
|
207
189
|
requirements:
|
208
|
-
- -
|
190
|
+
- - ">="
|
209
191
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
192
|
+
version: '0'
|
211
193
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
|
-
none: false
|
213
194
|
requirements:
|
214
|
-
- -
|
195
|
+
- - ">="
|
215
196
|
- !ruby/object:Gem::Version
|
216
197
|
version: '0'
|
217
198
|
requirements:
|
218
199
|
- none
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
specification_version: 3
|
200
|
+
rubygems_version: 3.2.3
|
201
|
+
signing_key:
|
202
|
+
specification_version: 4
|
223
203
|
summary: Provides locale information for use in Spree.
|
224
|
-
test_files:
|
204
|
+
test_files:
|
205
|
+
- spec/features/russian_errors_translation_spec.rb
|
206
|
+
- spec/features/translation_spec.rb
|
207
|
+
- spec/spec_helper.rb
|
208
|
+
- spec/support/i18n.rb
|