solidus_i18n 2.2.0 → 4.8.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 +55 -9
- data/Rakefile +21 -10
- data/bin/rails +9 -11
- data/config/locales/da.yml +1 -1
- data/config/locales/de.yml +1 -1
- data/config/locales/es-CL.yml +1 -1
- data/config/locales/es-MX.yml +3 -3
- data/config/locales/es.yml +3 -3
- data/config/locales/fa.yml +1 -1
- data/config/locales/fr.yml +4 -4
- data/config/locales/id.yml +1 -1
- data/config/locales/it.yml +1 -1
- data/config/locales/ja.yml +2 -2
- data/config/locales/nb.yml +1 -1
- data/config/locales/nl.yml +1 -1
- data/config/locales/pl.yml +1 -1
- data/config/locales/pt-BR.yml +426 -145
- data/config/locales/ru.yml +1 -1
- data/config/locales/tr.yml +1 -1
- data/i18n-tasks.yml +22 -0
- data/lib/solidus_i18n/engine.rb +2 -12
- data/lib/solidus_i18n.rb +1 -5
- data/solidus_i18n.gemspec +30 -34
- metadata +18 -245
- data/.circleci/config.yml +0 -61
- data/.gem_release.yml +0 -5
- data/.github/stale.yml +0 -1
- data/.gitignore +0 -16
- data/.hound.yml +0 -25
- data/.rspec +0 -2
- data/.rubocop.yml +0 -4
- data/.rubocop_todo.yml +0 -18
- data/CONTRIBUTING.md +0 -70
- data/Gemfile +0 -37
- data/LICENSE +0 -26
- data/bin/console +0 -17
- data/bin/rake +0 -7
- data/bin/setup +0 -8
- data/config/routes.rb +0 -4
- data/lib/generators/solidus_i18n/install/install_generator.rb +0 -24
- data/lib/solidus_i18n/factories.rb +0 -4
- data/lib/solidus_i18n/version.rb +0 -5
- data/lib/tasks/solidus_i18n/upgrade.rake +0 -45
- data/spec/dummy/README.md +0 -24
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/config/manifest.js +0 -2
- data/spec/dummy/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
- data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
- data/spec/dummy/app/controllers/application_controller.rb +0 -2
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/jobs/application_job.rb +0 -7
- data/spec/dummy/app/mailers/application_mailer.rb +0 -4
- data/spec/dummy/app/models/application_record.rb +0 -3
- data/spec/dummy/app/views/layouts/application.html.erb +0 -15
- data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
- data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/bin/setup +0 -33
- data/spec/dummy/config/application.rb +0 -53
- data/spec/dummy/config/boot.rb +0 -6
- data/spec/dummy/config/cable.yml +0 -10
- data/spec/dummy/config/credentials.yml.enc +0 -1
- data/spec/dummy/config/database.yml +0 -12
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -76
- data/spec/dummy/config/environments/production.rb +0 -120
- data/spec/dummy/config/environments/test.rb +0 -36
- data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
- data/spec/dummy/config/initializers/assets.rb +0 -12
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -8
- data/spec/dummy/config/initializers/content_security_policy.rb +0 -28
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -6
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -4
- data/spec/dummy/config/initializers/permissions_policy.rb +0 -11
- data/spec/dummy/config/initializers/spree.rb +0 -74
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -33
- data/spec/dummy/config/master.key +0 -1
- data/spec/dummy/config/routes.rb +0 -9
- data/spec/dummy/config/storage.yml +0 -34
- data/spec/dummy/config.ru +0 -6
- data/spec/dummy/db/migrate/20210218213814_create_active_storage_tables.active_storage.rb +0 -36
- data/spec/dummy/db/migrate/20210218213818_create_action_mailbox_tables.action_mailbox.rb +0 -14
- data/spec/dummy/db/migrate/20210218213819_create_action_text_tables.action_text.rb +0 -14
- data/spec/dummy/db/migrate/20210218213820_solidus_one_four.spree.rb +0 -1103
- data/spec/dummy/db/migrate/20210218213821_create_spree_wallet_payment_sources.spree.rb +0 -28
- data/spec/dummy/db/migrate/20210218213822_migrate_credit_cards_to_wallet_payment_sources.spree.rb +0 -30
- data/spec/dummy/db/migrate/20210218213823_remove_is_default_from_prices.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213824_remove_currency_from_line_items.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213825_add_available_to_columns_and_remove_display_on_from_payment_methods.spree.rb +0 -31
- data/spec/dummy/db/migrate/20210218213826_create_spree_promotion_code_batch.spree.rb +0 -39
- data/spec/dummy/db/migrate/20210218213827_add_available_to_users_and_remove_display_on_from_shipping_methods.spree.rb +0 -23
- data/spec/dummy/db/migrate/20210218213828_add_index_to_spree_payments_number.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213829_remove_spree_store_credits_column.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213830_add_lft_and_rgt_indexes_to_taxons.spree.rb +0 -9
- data/spec/dummy/db/migrate/20210218213831_remove_order_id_from_inventory_units.spree.rb +0 -31
- data/spec/dummy/db/migrate/20210218213832_transform_tax_rate_category_relation.spree.rb +0 -51
- data/spec/dummy/db/migrate/20210218213833_add_roles_unique_constraints.spree.rb +0 -9
- data/spec/dummy/db/migrate/20210218213834_add_time_range_to_tax_rate.spree.rb +0 -9
- data/spec/dummy/db/migrate/20210218213835_rename_bogus_gateways.spree.rb +0 -19
- data/spec/dummy/db/migrate/20210218213836_remove_default_tax_from_spree_zones.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213837_create_promotion_rule_stores.spree.rb +0 -13
- data/spec/dummy/db/migrate/20210218213838_create_store_shipping_methods.spree.rb +0 -13
- data/spec/dummy/db/migrate/20210218213839_add_available_locales_to_stores.spree.rb +0 -10
- data/spec/dummy/db/migrate/20210218213840_add_amount_remaining_to_store_credit_events.spree.rb +0 -62
- data/spec/dummy/db/migrate/20210218213841_add_join_characters_to_promotion_code_batch.spree.rb +0 -12
- data/spec/dummy/db/migrate/20210218213842_add_apply_to_all_to_variant_property_rule.spree.rb +0 -13
- data/spec/dummy/db/migrate/20210218213843_create_spree_store_credit_reasons_table.spree.rb +0 -56
- data/spec/dummy/db/migrate/20210218213844_remove_code_from_spree_promotions.spree.rb +0 -43
- data/spec/dummy/db/migrate/20210218213845_drop_spree_store_credit_update_reasons.spree.rb +0 -20
- data/spec/dummy/db/migrate/20210218213846_add_default_billng_flag_to_user_addresses.spree.rb +0 -7
- data/spec/dummy/db/migrate/20210218213847_add_bcc_email_to_spree_stores.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213848_add_discontinue_on_to_spree_products.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213849_add_name_to_spree_addresses.spree.rb +0 -14
- data/spec/dummy/db/migrate/20210218213850_add_api_key_to_spree_users.spree_api.rb +0 -10
- data/spec/dummy/db/migrate/20210218213851_resize_api_key_field.spree_api.rb +0 -10
- data/spec/dummy/db/migrate/20210218213852_rename_api_key_to_spree_api_key.spree_api.rb +0 -10
- data/spec/dummy/db/migrate/20210218213853_add_index_to_user_spree_api_key.spree_api.rb +0 -10
- data/spec/dummy/db/schema.rb +0 -1215
- data/spec/dummy/db/seeds.rb +0 -10
- data/spec/dummy/db/solidus_test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +0 -1198
- data/spec/dummy/public/404.html +0 -67
- data/spec/dummy/public/422.html +0 -67
- data/spec/dummy/public/500.html +0 -66
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/development_secret.txt +0 -1
- data/spec/dummy/vendor/assets/javascripts/spree/backend/all.js +0 -10
- data/spec/dummy/vendor/assets/javascripts/spree/frontend/all.js +0 -10
- data/spec/dummy/vendor/assets/stylesheets/spree/backend/all.css +0 -9
- data/spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css +0 -9
- data/spec/examples.txt +0 -4
- data/spec/solidus_i18n_spec.rb +0 -67
- data/spec/spec_helper.rb +0 -33
data/spec/dummy/public/404.html
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
-
<style>
|
|
7
|
-
.rails-default-error-page {
|
|
8
|
-
background-color: #EFEFEF;
|
|
9
|
-
color: #2E2F30;
|
|
10
|
-
text-align: center;
|
|
11
|
-
font-family: arial, sans-serif;
|
|
12
|
-
margin: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.rails-default-error-page div.dialog {
|
|
16
|
-
width: 95%;
|
|
17
|
-
max-width: 33em;
|
|
18
|
-
margin: 4em auto 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.rails-default-error-page div.dialog > div {
|
|
22
|
-
border: 1px solid #CCC;
|
|
23
|
-
border-right-color: #999;
|
|
24
|
-
border-left-color: #999;
|
|
25
|
-
border-bottom-color: #BBB;
|
|
26
|
-
border-top: #B00100 solid 4px;
|
|
27
|
-
border-top-left-radius: 9px;
|
|
28
|
-
border-top-right-radius: 9px;
|
|
29
|
-
background-color: white;
|
|
30
|
-
padding: 7px 12% 0;
|
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.rails-default-error-page h1 {
|
|
35
|
-
font-size: 100%;
|
|
36
|
-
color: #730E15;
|
|
37
|
-
line-height: 1.5em;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.rails-default-error-page div.dialog > p {
|
|
41
|
-
margin: 0 0 1em;
|
|
42
|
-
padding: 1em;
|
|
43
|
-
background-color: #F7F7F7;
|
|
44
|
-
border: 1px solid #CCC;
|
|
45
|
-
border-right-color: #999;
|
|
46
|
-
border-left-color: #999;
|
|
47
|
-
border-bottom-color: #999;
|
|
48
|
-
border-bottom-left-radius: 4px;
|
|
49
|
-
border-bottom-right-radius: 4px;
|
|
50
|
-
border-top-color: #DADADA;
|
|
51
|
-
color: #666;
|
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
53
|
-
}
|
|
54
|
-
</style>
|
|
55
|
-
</head>
|
|
56
|
-
|
|
57
|
-
<body class="rails-default-error-page">
|
|
58
|
-
<!-- This file lives in public/404.html -->
|
|
59
|
-
<div class="dialog">
|
|
60
|
-
<div>
|
|
61
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
|
62
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
|
63
|
-
</div>
|
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
|
65
|
-
</div>
|
|
66
|
-
</body>
|
|
67
|
-
</html>
|
data/spec/dummy/public/422.html
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
-
<style>
|
|
7
|
-
.rails-default-error-page {
|
|
8
|
-
background-color: #EFEFEF;
|
|
9
|
-
color: #2E2F30;
|
|
10
|
-
text-align: center;
|
|
11
|
-
font-family: arial, sans-serif;
|
|
12
|
-
margin: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.rails-default-error-page div.dialog {
|
|
16
|
-
width: 95%;
|
|
17
|
-
max-width: 33em;
|
|
18
|
-
margin: 4em auto 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.rails-default-error-page div.dialog > div {
|
|
22
|
-
border: 1px solid #CCC;
|
|
23
|
-
border-right-color: #999;
|
|
24
|
-
border-left-color: #999;
|
|
25
|
-
border-bottom-color: #BBB;
|
|
26
|
-
border-top: #B00100 solid 4px;
|
|
27
|
-
border-top-left-radius: 9px;
|
|
28
|
-
border-top-right-radius: 9px;
|
|
29
|
-
background-color: white;
|
|
30
|
-
padding: 7px 12% 0;
|
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.rails-default-error-page h1 {
|
|
35
|
-
font-size: 100%;
|
|
36
|
-
color: #730E15;
|
|
37
|
-
line-height: 1.5em;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.rails-default-error-page div.dialog > p {
|
|
41
|
-
margin: 0 0 1em;
|
|
42
|
-
padding: 1em;
|
|
43
|
-
background-color: #F7F7F7;
|
|
44
|
-
border: 1px solid #CCC;
|
|
45
|
-
border-right-color: #999;
|
|
46
|
-
border-left-color: #999;
|
|
47
|
-
border-bottom-color: #999;
|
|
48
|
-
border-bottom-left-radius: 4px;
|
|
49
|
-
border-bottom-right-radius: 4px;
|
|
50
|
-
border-top-color: #DADADA;
|
|
51
|
-
color: #666;
|
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
53
|
-
}
|
|
54
|
-
</style>
|
|
55
|
-
</head>
|
|
56
|
-
|
|
57
|
-
<body class="rails-default-error-page">
|
|
58
|
-
<!-- This file lives in public/422.html -->
|
|
59
|
-
<div class="dialog">
|
|
60
|
-
<div>
|
|
61
|
-
<h1>The change you wanted was rejected.</h1>
|
|
62
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
|
63
|
-
</div>
|
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
|
65
|
-
</div>
|
|
66
|
-
</body>
|
|
67
|
-
</html>
|
data/spec/dummy/public/500.html
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
-
<style>
|
|
7
|
-
.rails-default-error-page {
|
|
8
|
-
background-color: #EFEFEF;
|
|
9
|
-
color: #2E2F30;
|
|
10
|
-
text-align: center;
|
|
11
|
-
font-family: arial, sans-serif;
|
|
12
|
-
margin: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.rails-default-error-page div.dialog {
|
|
16
|
-
width: 95%;
|
|
17
|
-
max-width: 33em;
|
|
18
|
-
margin: 4em auto 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.rails-default-error-page div.dialog > div {
|
|
22
|
-
border: 1px solid #CCC;
|
|
23
|
-
border-right-color: #999;
|
|
24
|
-
border-left-color: #999;
|
|
25
|
-
border-bottom-color: #BBB;
|
|
26
|
-
border-top: #B00100 solid 4px;
|
|
27
|
-
border-top-left-radius: 9px;
|
|
28
|
-
border-top-right-radius: 9px;
|
|
29
|
-
background-color: white;
|
|
30
|
-
padding: 7px 12% 0;
|
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.rails-default-error-page h1 {
|
|
35
|
-
font-size: 100%;
|
|
36
|
-
color: #730E15;
|
|
37
|
-
line-height: 1.5em;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.rails-default-error-page div.dialog > p {
|
|
41
|
-
margin: 0 0 1em;
|
|
42
|
-
padding: 1em;
|
|
43
|
-
background-color: #F7F7F7;
|
|
44
|
-
border: 1px solid #CCC;
|
|
45
|
-
border-right-color: #999;
|
|
46
|
-
border-left-color: #999;
|
|
47
|
-
border-bottom-color: #999;
|
|
48
|
-
border-bottom-left-radius: 4px;
|
|
49
|
-
border-bottom-right-radius: 4px;
|
|
50
|
-
border-top-color: #DADADA;
|
|
51
|
-
color: #666;
|
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
53
|
-
}
|
|
54
|
-
</style>
|
|
55
|
-
</head>
|
|
56
|
-
|
|
57
|
-
<body class="rails-default-error-page">
|
|
58
|
-
<!-- This file lives in public/500.html -->
|
|
59
|
-
<div class="dialog">
|
|
60
|
-
<div>
|
|
61
|
-
<h1>We're sorry, but something went wrong.</h1>
|
|
62
|
-
</div>
|
|
63
|
-
<p>If you are the application owner check the logs for more information.</p>
|
|
64
|
-
</div>
|
|
65
|
-
</body>
|
|
66
|
-
</html>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d47b64487d6f270de1f71e1ce741894aa9e0f997ce3047b7c125dc46b47acb993a34794f2d0e5a74d9b9f3bbebe2ee549bbeee3d7ca1f8b759851f6ec6b8c2ba
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// This is a manifest file that'll be compiled into including all the files listed below.
|
|
2
|
-
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
|
3
|
-
// be included in the compiled file accessible from http://example.com/assets/application.js
|
|
4
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
5
|
-
// the compiled file.
|
|
6
|
-
//
|
|
7
|
-
//= require jquery
|
|
8
|
-
//= require rails-ujs
|
|
9
|
-
//= require spree/backend
|
|
10
|
-
//= require_tree .
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// This is a manifest file that'll be compiled into including all the files listed below.
|
|
2
|
-
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
|
3
|
-
// be included in the compiled file accessible from http://example.com/assets/application.js
|
|
4
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
5
|
-
// the compiled file.
|
|
6
|
-
//
|
|
7
|
-
//= require jquery
|
|
8
|
-
//= require rails-ujs
|
|
9
|
-
//= require spree/frontend
|
|
10
|
-
//= require_tree .
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
|
3
|
-
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
|
4
|
-
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
|
5
|
-
*
|
|
6
|
-
*= require spree/backend
|
|
7
|
-
*= require_self
|
|
8
|
-
*= require_tree .
|
|
9
|
-
*/
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
|
3
|
-
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
|
4
|
-
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
|
5
|
-
*
|
|
6
|
-
*= require spree/frontend
|
|
7
|
-
*= require_self
|
|
8
|
-
*= require_tree .
|
|
9
|
-
*/
|
data/spec/examples.txt
DELETED
data/spec/solidus_i18n_spec.rb
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'spec_helper'
|
|
4
|
-
|
|
5
|
-
RSpec.describe 'solidus_i18n' do
|
|
6
|
-
describe 'defined locales' do
|
|
7
|
-
subject do
|
|
8
|
-
I18n.available_locales.select do |locale|
|
|
9
|
-
I18n.t('spree.i18n.this_file_language', locale: locale, fallback: false, default: nil)
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
it 'contains the added locales' do
|
|
14
|
-
# Add to this list when adding/removing locales
|
|
15
|
-
expect(subject).to match_array %i[
|
|
16
|
-
en
|
|
17
|
-
zh-CN
|
|
18
|
-
cs
|
|
19
|
-
zh-TW
|
|
20
|
-
it
|
|
21
|
-
nl
|
|
22
|
-
da
|
|
23
|
-
tr
|
|
24
|
-
id
|
|
25
|
-
ro
|
|
26
|
-
pt-BR
|
|
27
|
-
ja
|
|
28
|
-
es
|
|
29
|
-
fr
|
|
30
|
-
de
|
|
31
|
-
ru
|
|
32
|
-
uk
|
|
33
|
-
ko
|
|
34
|
-
pt
|
|
35
|
-
et
|
|
36
|
-
sk
|
|
37
|
-
pl
|
|
38
|
-
nb
|
|
39
|
-
fa
|
|
40
|
-
fi
|
|
41
|
-
en-NZ
|
|
42
|
-
en-IN
|
|
43
|
-
en-AU
|
|
44
|
-
bg
|
|
45
|
-
en-GB
|
|
46
|
-
de-CH
|
|
47
|
-
es-MX
|
|
48
|
-
es-CL
|
|
49
|
-
th
|
|
50
|
-
ca
|
|
51
|
-
vi
|
|
52
|
-
sv
|
|
53
|
-
es-EC
|
|
54
|
-
lv
|
|
55
|
-
sl-SI
|
|
56
|
-
]
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
it 'has a unique description for each locale' do
|
|
60
|
-
descriptions = subject.map do |locale|
|
|
61
|
-
I18n.t('spree.i18n.this_file_language', locale: locale)
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
expect(descriptions.uniq).to eq(descriptions)
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
data/spec/spec_helper.rb
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# Configure Rails Environment
|
|
4
|
-
ENV['RAILS_ENV'] ||= 'test'
|
|
5
|
-
|
|
6
|
-
# Run Coverage report
|
|
7
|
-
require 'solidus_dev_support/rspec/coverage'
|
|
8
|
-
|
|
9
|
-
require File.expand_path('dummy/config/environment.rb', __dir__)
|
|
10
|
-
|
|
11
|
-
# Requires factories and other useful helpers defined in spree_core.
|
|
12
|
-
require 'solidus_dev_support/rspec/feature_helper'
|
|
13
|
-
|
|
14
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
|
15
|
-
# in spec/support/ and its subdirectories.
|
|
16
|
-
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
|
|
17
|
-
|
|
18
|
-
# Requires factories defined in lib/solidus_i18n/factories.rb
|
|
19
|
-
require 'solidus_i18n/factories'
|
|
20
|
-
|
|
21
|
-
RSpec.configure do |config|
|
|
22
|
-
config.fail_fast = false
|
|
23
|
-
config.filter_run focus: true
|
|
24
|
-
config.infer_spec_type_from_file_location!
|
|
25
|
-
config.mock_with :rspec
|
|
26
|
-
config.raise_errors_for_deprecations!
|
|
27
|
-
config.run_all_when_everything_filtered = true
|
|
28
|
-
config.use_transactional_fixtures = false
|
|
29
|
-
|
|
30
|
-
config.expect_with :rspec do |expectations|
|
|
31
|
-
expectations.syntax = :expect
|
|
32
|
-
end
|
|
33
|
-
end
|