solidus_i18n 2.1.1 → 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.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +55 -9
  4. data/Rakefile +21 -9
  5. data/bin/rails +9 -11
  6. data/config/locales/bg.yml +0 -5
  7. data/config/locales/ca.yml +0 -5
  8. data/config/locales/da.yml +1 -6
  9. data/config/locales/de-CH.yml +0 -5
  10. data/config/locales/de.yml +64 -35
  11. data/config/locales/en-AU.yml +0 -5
  12. data/config/locales/en-GB.yml +1 -6
  13. data/config/locales/en-IN.yml +1 -6
  14. data/config/locales/en-NZ.yml +1 -6
  15. data/config/locales/es-CL.yml +1 -1
  16. data/config/locales/es-EC.yml +0 -5
  17. data/config/locales/es-MX.yml +3 -3
  18. data/config/locales/es.yml +3 -3
  19. data/config/locales/et.yml +0 -5
  20. data/config/locales/fa.yml +1 -1
  21. data/config/locales/fi.yml +0 -5
  22. data/config/locales/fr.yml +9 -4
  23. data/config/locales/id.yml +1 -6
  24. data/config/locales/it.yml +1 -1
  25. data/config/locales/ja.yml +2 -2
  26. data/config/locales/ko.yml +0 -5
  27. data/config/locales/lv.yml +0 -5
  28. data/config/locales/nb.yml +1 -6
  29. data/config/locales/nl.yml +1 -6
  30. data/config/locales/pl.yml +1 -1
  31. data/config/locales/pt-BR.yml +426 -145
  32. data/config/locales/pt.yml +0 -5
  33. data/config/locales/ro.yml +0 -5
  34. data/config/locales/ru.yml +97 -24
  35. data/config/locales/sl-SI.yml +0 -5
  36. data/config/locales/th.yml +0 -5
  37. data/config/locales/tr.yml +1 -6
  38. data/config/locales/vi.yml +0 -5
  39. data/config/locales/zh-CN.yml +0 -5
  40. data/config/locales/zh-TW.yml +0 -5
  41. data/i18n-tasks.yml +22 -0
  42. data/lib/solidus_i18n/engine.rb +2 -12
  43. data/lib/solidus_i18n.rb +1 -5
  44. data/solidus_i18n.gemspec +30 -33
  45. metadata +21 -245
  46. data/.circleci/config.yml +0 -35
  47. data/.gem_release.yml +0 -5
  48. data/.github/stale.yml +0 -17
  49. data/.gitignore +0 -16
  50. data/.hound.yml +0 -25
  51. data/.rspec +0 -2
  52. data/.rubocop.yml +0 -4
  53. data/.rubocop_todo.yml +0 -18
  54. data/CONTRIBUTING.md +0 -70
  55. data/Gemfile +0 -31
  56. data/LICENSE +0 -26
  57. data/bin/console +0 -17
  58. data/bin/setup +0 -8
  59. data/config/routes.rb +0 -4
  60. data/lib/generators/solidus_i18n/install/install_generator.rb +0 -24
  61. data/lib/solidus_i18n/factories.rb +0 -4
  62. data/lib/solidus_i18n/version.rb +0 -5
  63. data/lib/tasks/solidus_i18n/upgrade.rake +0 -45
  64. data/spec/dummy/README.md +0 -24
  65. data/spec/dummy/Rakefile +0 -6
  66. data/spec/dummy/app/assets/config/manifest.js +0 -2
  67. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  68. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  69. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  70. data/spec/dummy/app/controllers/application_controller.rb +0 -2
  71. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  72. data/spec/dummy/app/jobs/application_job.rb +0 -7
  73. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  74. data/spec/dummy/app/models/application_record.rb +0 -3
  75. data/spec/dummy/app/views/layouts/application.html.erb +0 -15
  76. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  77. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  78. data/spec/dummy/bin/rails +0 -4
  79. data/spec/dummy/bin/rake +0 -4
  80. data/spec/dummy/bin/setup +0 -33
  81. data/spec/dummy/config/application.rb +0 -53
  82. data/spec/dummy/config/boot.rb +0 -6
  83. data/spec/dummy/config/cable.yml +0 -10
  84. data/spec/dummy/config/credentials.yml.enc +0 -1
  85. data/spec/dummy/config/database.yml +0 -12
  86. data/spec/dummy/config/environment.rb +0 -5
  87. data/spec/dummy/config/environments/development.rb +0 -76
  88. data/spec/dummy/config/environments/production.rb +0 -120
  89. data/spec/dummy/config/environments/test.rb +0 -36
  90. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  91. data/spec/dummy/config/initializers/assets.rb +0 -12
  92. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -8
  93. data/spec/dummy/config/initializers/content_security_policy.rb +0 -28
  94. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  95. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -6
  96. data/spec/dummy/config/initializers/inflections.rb +0 -16
  97. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  98. data/spec/dummy/config/initializers/permissions_policy.rb +0 -11
  99. data/spec/dummy/config/initializers/spree.rb +0 -74
  100. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  101. data/spec/dummy/config/locales/en.yml +0 -33
  102. data/spec/dummy/config/master.key +0 -1
  103. data/spec/dummy/config/routes.rb +0 -9
  104. data/spec/dummy/config/storage.yml +0 -34
  105. data/spec/dummy/config.ru +0 -6
  106. data/spec/dummy/db/migrate/20210218213814_create_active_storage_tables.active_storage.rb +0 -36
  107. data/spec/dummy/db/migrate/20210218213818_create_action_mailbox_tables.action_mailbox.rb +0 -14
  108. data/spec/dummy/db/migrate/20210218213819_create_action_text_tables.action_text.rb +0 -14
  109. data/spec/dummy/db/migrate/20210218213820_solidus_one_four.spree.rb +0 -1103
  110. data/spec/dummy/db/migrate/20210218213821_create_spree_wallet_payment_sources.spree.rb +0 -28
  111. data/spec/dummy/db/migrate/20210218213822_migrate_credit_cards_to_wallet_payment_sources.spree.rb +0 -30
  112. data/spec/dummy/db/migrate/20210218213823_remove_is_default_from_prices.spree.rb +0 -8
  113. data/spec/dummy/db/migrate/20210218213824_remove_currency_from_line_items.spree.rb +0 -8
  114. data/spec/dummy/db/migrate/20210218213825_add_available_to_columns_and_remove_display_on_from_payment_methods.spree.rb +0 -31
  115. data/spec/dummy/db/migrate/20210218213826_create_spree_promotion_code_batch.spree.rb +0 -39
  116. data/spec/dummy/db/migrate/20210218213827_add_available_to_users_and_remove_display_on_from_shipping_methods.spree.rb +0 -23
  117. data/spec/dummy/db/migrate/20210218213828_add_index_to_spree_payments_number.spree.rb +0 -8
  118. data/spec/dummy/db/migrate/20210218213829_remove_spree_store_credits_column.spree.rb +0 -8
  119. data/spec/dummy/db/migrate/20210218213830_add_lft_and_rgt_indexes_to_taxons.spree.rb +0 -9
  120. data/spec/dummy/db/migrate/20210218213831_remove_order_id_from_inventory_units.spree.rb +0 -31
  121. data/spec/dummy/db/migrate/20210218213832_transform_tax_rate_category_relation.spree.rb +0 -51
  122. data/spec/dummy/db/migrate/20210218213833_add_roles_unique_constraints.spree.rb +0 -9
  123. data/spec/dummy/db/migrate/20210218213834_add_time_range_to_tax_rate.spree.rb +0 -9
  124. data/spec/dummy/db/migrate/20210218213835_rename_bogus_gateways.spree.rb +0 -19
  125. data/spec/dummy/db/migrate/20210218213836_remove_default_tax_from_spree_zones.spree.rb +0 -8
  126. data/spec/dummy/db/migrate/20210218213837_create_promotion_rule_stores.spree.rb +0 -13
  127. data/spec/dummy/db/migrate/20210218213838_create_store_shipping_methods.spree.rb +0 -13
  128. data/spec/dummy/db/migrate/20210218213839_add_available_locales_to_stores.spree.rb +0 -10
  129. data/spec/dummy/db/migrate/20210218213840_add_amount_remaining_to_store_credit_events.spree.rb +0 -62
  130. data/spec/dummy/db/migrate/20210218213841_add_join_characters_to_promotion_code_batch.spree.rb +0 -12
  131. data/spec/dummy/db/migrate/20210218213842_add_apply_to_all_to_variant_property_rule.spree.rb +0 -13
  132. data/spec/dummy/db/migrate/20210218213843_create_spree_store_credit_reasons_table.spree.rb +0 -56
  133. data/spec/dummy/db/migrate/20210218213844_remove_code_from_spree_promotions.spree.rb +0 -43
  134. data/spec/dummy/db/migrate/20210218213845_drop_spree_store_credit_update_reasons.spree.rb +0 -20
  135. data/spec/dummy/db/migrate/20210218213846_add_default_billng_flag_to_user_addresses.spree.rb +0 -7
  136. data/spec/dummy/db/migrate/20210218213847_add_bcc_email_to_spree_stores.spree.rb +0 -8
  137. data/spec/dummy/db/migrate/20210218213848_add_discontinue_on_to_spree_products.spree.rb +0 -8
  138. data/spec/dummy/db/migrate/20210218213849_add_name_to_spree_addresses.spree.rb +0 -14
  139. data/spec/dummy/db/migrate/20210218213850_add_api_key_to_spree_users.spree_api.rb +0 -10
  140. data/spec/dummy/db/migrate/20210218213851_resize_api_key_field.spree_api.rb +0 -10
  141. data/spec/dummy/db/migrate/20210218213852_rename_api_key_to_spree_api_key.spree_api.rb +0 -10
  142. data/spec/dummy/db/migrate/20210218213853_add_index_to_user_spree_api_key.spree_api.rb +0 -10
  143. data/spec/dummy/db/schema.rb +0 -1215
  144. data/spec/dummy/db/seeds.rb +0 -10
  145. data/spec/dummy/db/solidus_test.sqlite3 +0 -0
  146. data/spec/dummy/log/test.log +0 -1198
  147. data/spec/dummy/public/404.html +0 -67
  148. data/spec/dummy/public/422.html +0 -67
  149. data/spec/dummy/public/500.html +0 -66
  150. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  151. data/spec/dummy/public/apple-touch-icon.png +0 -0
  152. data/spec/dummy/public/favicon.ico +0 -0
  153. data/spec/dummy/tmp/development_secret.txt +0 -1
  154. data/spec/dummy/vendor/assets/javascripts/spree/backend/all.js +0 -10
  155. data/spec/dummy/vendor/assets/javascripts/spree/frontend/all.js +0 -10
  156. data/spec/dummy/vendor/assets/stylesheets/spree/backend/all.css +0 -9
  157. data/spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css +0 -9
  158. data/spec/examples.txt +0 -4
  159. data/spec/solidus_i18n_spec.rb +0 -67
  160. data/spec/spec_helper.rb +0 -33
@@ -1,11 +0,0 @@
1
- # Define an application-wide HTTP permissions policy. For further
2
- # information see https://developers.google.com/web/updates/2018/06/feature-policy
3
- #
4
- # Rails.application.config.permissions_policy do |f|
5
- # f.camera :none
6
- # f.gyroscope :none
7
- # f.microphone :none
8
- # f.usb :none
9
- # f.fullscreen :self
10
- # f.payment :self, "https://secure.example.com"
11
- # end
@@ -1,74 +0,0 @@
1
- # Configure Solidus Preferences
2
- # See http://docs.solidus.io/Spree/AppConfiguration.html for details
3
-
4
- Spree.config do |config|
5
- # Core:
6
-
7
- # Default currency for new sites
8
- config.currency = "USD"
9
-
10
- # from address for transactional emails
11
- config.mails_from = "store@example.com"
12
-
13
- # Uncomment to stop tracking inventory levels in the application
14
- # config.track_inventory_levels = false
15
-
16
- # When set, product caches are only invalidated when they fall below or rise
17
- # above the inventory_cache_threshold that is set. Default is to invalidate cache on
18
- # any inventory changes.
19
- # config.inventory_cache_threshold = 3
20
-
21
- # Configure adapter for attachments on products and taxons (use ActiveStorageAttachment or PaperclipAttachment)
22
- config.image_attachment_module = 'Spree::Image::ActiveStorageAttachment'
23
- config.taxon_attachment_module = 'Spree::Taxon::ActiveStorageAttachment'
24
-
25
- # Defaults
26
- # Permission Sets:
27
-
28
- # Uncomment and customize the following line to add custom permission sets
29
- # to a custom users role:
30
- # config.roles.assign_permissions :role_name, ['Spree::PermissionSets::CustomPermissionSet']
31
-
32
-
33
- # Frontend:
34
-
35
- # Custom logo for the frontend
36
- # config.logo = "logo/solidus.svg"
37
-
38
- # Template to use when rendering layout
39
- # config.layout = "spree/layouts/spree_application"
40
-
41
-
42
- # Admin:
43
-
44
- # Custom logo for the admin
45
- # config.admin_interface_logo = "logo/solidus.svg"
46
-
47
- # Gateway credentials can be configured statically here and referenced from
48
- # the admin. They can also be fully configured from the admin.
49
- #
50
- # Please note that you need to use the solidus_stripe gem to have
51
- # Stripe working: https://github.com/solidusio-contrib/solidus_stripe
52
- #
53
- # config.static_model_preferences.add(
54
- # Spree::PaymentMethod::StripeCreditCard,
55
- # 'stripe_env_credentials',
56
- # secret_key: ENV['STRIPE_SECRET_KEY'],
57
- # publishable_key: ENV['STRIPE_PUBLISHABLE_KEY'],
58
- # server: Rails.env.production? ? 'production' : 'test',
59
- # test_mode: !Rails.env.production?
60
- # )
61
- end
62
-
63
-
64
-
65
-
66
- Spree.user_class = "Spree::LegacyUser"
67
-
68
- # Rules for avoiding to store the current path into session for redirects
69
- # When at least one rule is matched, the request path will not be stored
70
- # in session.
71
- # You can add your custom rules by uncommenting this line and changing
72
- # the class name:
73
- #
74
- # Spree::UserLastUrlStorer.rules << 'Spree::UserLastUrlStorer::Rules::AuthenticationRule'
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json]
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
@@ -1,33 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # The following keys must be escaped otherwise they will not be retrieved by
20
- # the default I18n backend:
21
- #
22
- # true, false, on, off, yes, no
23
- #
24
- # Instead, surround them with single quotes.
25
- #
26
- # en:
27
- # 'true': 'foo'
28
- #
29
- # To learn more, please read the Rails Internationalization guide
30
- # available at https://guides.rubyonrails.org/i18n.html.
31
-
32
- en:
33
- hello: "Hello world"
@@ -1 +0,0 @@
1
- 46ca322ab98b8964c1ecf90774512435
@@ -1,9 +0,0 @@
1
- Rails.application.routes.draw do
2
- # This line mounts Solidus's routes at the root of your application.
3
- # This means, any requests to URLs such as /products, will go to Spree::ProductsController.
4
- # If you would like to change where this engine is mounted, simply change the :at option to something different.
5
- #
6
- # We ask that you don't use the :as option here, as Solidus relies on it being the default of "spree"
7
- mount Spree::Core::Engine, at: '/'
8
-
9
- end
@@ -1,34 +0,0 @@
1
- test:
2
- service: Disk
3
- root: <%= Rails.root.join("tmp/storage") %>
4
-
5
- local:
6
- service: Disk
7
- root: <%= Rails.root.join("storage") %>
8
-
9
- # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
- # amazon:
11
- # service: S3
12
- # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
- # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
- # region: us-east-1
15
- # bucket: your_own_bucket
16
-
17
- # Remember not to checkin your GCS keyfile to a repository
18
- # google:
19
- # service: GCS
20
- # project: your_project
21
- # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
- # bucket: your_own_bucket
23
-
24
- # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
- # microsoft:
26
- # service: AzureStorage
27
- # storage_account_name: your_account_name
28
- # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
- # container: your_container_name
30
-
31
- # mirror:
32
- # service: Mirror
33
- # primary: local
34
- # mirrors: [ amazon, google, microsoft ]
data/spec/dummy/config.ru DELETED
@@ -1,6 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require_relative "config/environment"
4
-
5
- run Rails.application
6
- Rails.application.load_server
@@ -1,36 +0,0 @@
1
- # This migration comes from active_storage (originally 20170806125915)
2
- class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
3
- def change
4
- create_table :active_storage_blobs do |t|
5
- t.string :key, null: false
6
- t.string :filename, null: false
7
- t.string :content_type
8
- t.text :metadata
9
- t.string :service_name, null: false
10
- t.bigint :byte_size, null: false
11
- t.string :checksum, null: false
12
- t.datetime :created_at, null: false
13
-
14
- t.index [ :key ], unique: true
15
- end
16
-
17
- create_table :active_storage_attachments do |t|
18
- t.string :name, null: false
19
- t.references :record, null: false, polymorphic: true, index: false
20
- t.references :blob, null: false
21
-
22
- t.datetime :created_at, null: false
23
-
24
- t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true
25
- t.foreign_key :active_storage_blobs, column: :blob_id
26
- end
27
-
28
- create_table :active_storage_variant_records do |t|
29
- t.belongs_to :blob, null: false, index: false
30
- t.string :variation_digest, null: false
31
-
32
- t.index %i[ blob_id variation_digest ], name: "index_active_storage_variant_records_uniqueness", unique: true
33
- t.foreign_key :active_storage_blobs, column: :blob_id
34
- end
35
- end
36
- end
@@ -1,14 +0,0 @@
1
- # This migration comes from action_mailbox (originally 20180917164000)
2
- class CreateActionMailboxTables < ActiveRecord::Migration[6.0]
3
- def change
4
- create_table :action_mailbox_inbound_emails do |t|
5
- t.integer :status, default: 0, null: false
6
- t.string :message_id, null: false
7
- t.string :message_checksum, null: false
8
-
9
- t.timestamps
10
-
11
- t.index [ :message_id, :message_checksum ], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true
12
- end
13
- end
14
- end
@@ -1,14 +0,0 @@
1
- # This migration comes from action_text (originally 20180528164100)
2
- class CreateActionTextTables < ActiveRecord::Migration[6.0]
3
- def change
4
- create_table :action_text_rich_texts do |t|
5
- t.string :name, null: false
6
- t.text :body, size: :long
7
- t.references :record, null: false, polymorphic: true, index: false
8
-
9
- t.timestamps
10
-
11
- t.index [ :record_type, :record_id, :name ], name: "index_action_text_rich_texts_uniqueness", unique: true
12
- end
13
- end
14
- end