Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix typos (#11254)

Viktorf0f53025b10b
diff --git a/api/config/locales/en.yml b/api/config/locales/en.yml
index 8eb565361d..96a6e3075a 100644
--- a/api/config/locales/en.yml
+++ b/api/config/locales/en.yml
@@ -26,7 +26,7 @@ en:
cannot_ready: "Cannot ready shipment."
stock_location_required: "A stock_location_id parameter must be provided in order to retrieve stock movements."
invalid_taxonomy_id: "Invalid taxonomy id."
- shipment_transfer_errors_occurred: "Following errors occured while attempting this action:"
+ shipment_transfer_errors_occurred: "Following errors occurred while attempting this action:"
negative_quantity: "quantity is negative"
wrong_shipment_target: "target shipment is the same as original shipment"
diff --git a/api/docs/oauth/index.yml b/api/docs/oauth/index.yml
index 19fadf67a6..ed58727aab 100644
--- a/api/docs/oauth/index.yml
+++ b/api/docs/oauth/index.yml
@@ -18,13 +18,13 @@ info:
paths:
/spree_oauth/token:
post:
- description: Creates or refreshes a Bearer token required to authorize calls API calls
+ description: Creates or refreshes a Bearer token required to authorize API calls
tags:
- Token
operationId: Create or Refresh Token
responses:
'200':
- description: Token was succesfully created or refreshed
+ description: Token was successfully created or refreshed
content:
application/json:
schema:
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index 8ab80a4616..9dbe7df557 100644
--- a/api/docs/v2/platform/index.yaml
+++ b/api/docs/v2/platform/index.yaml
@@ -24,14 +24,14 @@ paths:
type: integer
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: user,country,state
schema:
type: string
- name: filter
in: query
- descripton: ''
+ description: ''
example: user_id_eq=1&firstname_cont=Joh
schema:
type: string
@@ -127,7 +127,7 @@ paths:
parameters:
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: user,country,state
schema:
@@ -216,7 +216,7 @@ paths:
type: string
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: user,country,state
schema:
@@ -288,7 +288,7 @@ paths:
type: string
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: user,country,state
schema:
@@ -415,14 +415,14 @@ paths:
type: integer
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: product,taxon
schema:
type: string
- name: filter
in: query
- descripton: ''
+ description: ''
example: taxon_id_eq=1
schema:
type: string
@@ -492,7 +492,7 @@ paths:
parameters:
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: product,taxon
schema:
@@ -554,7 +554,7 @@ paths:
type: string
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: product,taxon
schema:
@@ -613,7 +613,7 @@ paths:
type: string
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: product,taxon
schema:
@@ -720,7 +720,7 @@ paths:
type: string
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: product,taxon
schema:
@@ -931,14 +931,14 @@ paths:
type: integer
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: taxonomy,parent,children
schema:
type: string
- name: filter
in: query
- descripton: ''
+ description: ''
example: taxonomy_id_eq=1&name_cont=Shirts
schema:
type: string
@@ -1083,7 +1083,7 @@ paths:
parameters:
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: taxonomy,parent,children
schema:
@@ -1163,7 +1163,7 @@ paths:
type: string
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: taxonomy,parent,children
schema:
@@ -1244,7 +1244,7 @@ paths:
type: string
- name: include
in: query
- descripton: 'Select which associated resources you would like to fetch, see:
+ description: 'Select which associated resources you would like to fetch, see:
<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
example: taxonomy,parent,children
schema:
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index f28ea6973f..cdc5be5848 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -535,7 +535,7 @@ paths:
/api/v2/storefront/cart/add_item:
post:
description: |-
- Additional parameters passed in **options** hash must be registered in `config/initialiers/spree.rb`, eg.
+ Additional parameters passed in **options** hash must be registered in `config/initializers/spree.rb`, eg.
```
Spree::PermittedAttributes.line_item_attributes << :foo
@@ -571,7 +571,7 @@ paths:
type: integer
options:
type: object
- description: 'Additional custom options. You need to add them via `Spree::PermittedAttributes.line_item_attributes << :foo` in `config/initialiers/spree.rb`'
+ description: 'Additional custom options. You need to add them via `Spree::PermittedAttributes.line_item_attributes << :foo` in `config/initializers/spree.rb`'
example:
variant_id: '1'
quantity: 5
diff --git a/api/lib/spree/api/testing_support/v2/platform_contexts.rb b/api/lib/spree/api/testing_support/v2/platform_contexts.rb
index b748d850f2..fc5f80598a 100644
--- a/api/lib/spree/api/testing_support/v2/platform_contexts.rb
+++ b/api/lib/spree/api/testing_support/v2/platform_contexts.rb
@@ -50,12 +50,12 @@ JSON_API_FILTER_DESCRIPTION = ''
def json_api_include_parameter(example = '')
let(:include) { nil }
- parameter name: :include, in: :query, type: :string, descripton: JSON_API_INCLUDES_DESCRIPTION, example: example
+ parameter name: :include, in: :query, type: :string, description: JSON_API_INCLUDES_DESCRIPTION, example: example
end
def json_api_filter_parameter(example = '')
let(:filter) { nil }
- parameter name: :filter, in: :query, type: :string, descripton: JSON_API_FILTER_DESCRIPTION, example: example
+ parameter name: :filter, in: :query, type: :string, description: JSON_API_FILTER_DESCRIPTION, example: example
end
shared_examples 'authentication failed' do
diff --git a/core/app/models/spree/store.rb b/core/app/models/spree/store.rb
index 1bec30bdba..02889e3cac 100644
--- a/core/app/models/spree/store.rb
+++ b/core/app/models/spree/store.rb
@@ -76,8 +76,8 @@ module Spree
def self.current(url = nil)
ActiveSupport::Deprecation.warn(<<-DEPRECATION, caller)
- `Spree::Store.current` is deprecated and will be removed in Spree 5
- Spree::Stores::FindCurrent.new(url: "http://example.com") instead
+ `Spree::Store.current` is deprecated and will be removed in Spree 5.0
+ Please use `Spree::Stores::FindCurrent.new(url: "https://example.com").execute` instead
DEPRECATION
Stores::FindCurrent.new(url: url).execute
end
diff --git a/core/config/locales/en.yml b/core/config/locales/en.yml
index 74acf3ee4a..66b1f9769d 100644
--- a/core/config/locales/en.yml
+++ b/core/config/locales/en.yml
@@ -1138,7 +1138,7 @@ en:
log_in_to_continue: Log in to continue
logs: "Logs"
logged_in_as: Logged in as
- logged_in_succesfully: Logged in successfully
+ logged_in_successfully: Logged in successfully
logged_out: You have been logged out.
login: Login
login_as_existing: Login as Existing Customer
diff --git a/core/lib/spree/testing_support/locale_helpers.rb b/core/lib/spree/testing_support/locale_helpers.rb
index 88e7eb0f62..5a156706a8 100644
--- a/core/lib/spree/testing_support/locale_helpers.rb
+++ b/core/lib/spree/testing_support/locale_helpers.rb
@@ -48,7 +48,7 @@ module Spree
remember_me: 'Se souvenir de moi',
my_account: 'Mon compte',
my_orders: 'Mes commandes',
- logged_in_succesfully: 'Connexion réussie'
+ logged_in_successfully: 'Connexion réussie'
})
end
# rubocop:enable Layout/ArgumentAlignment
diff --git a/frontend/spec/features/checkout_spec.rb b/frontend/spec/features/checkout_spec.rb
index d8ff9cdc10..0c07070a26 100644
--- a/frontend/spec/features/checkout_spec.rb
+++ b/frontend/spec/features/checkout_spec.rb
@@ -556,7 +556,7 @@ describe 'Checkout', type: :feature, inaccessible: true, js: true do
allow_any_instance_of(Spree::CheckoutController).to receive_messages(current_order: order)
end
- it 'move user to order succesfully placed page' do
+ it 'move user to order successfully placed page' do
find('#order_coupon_code').fill_in(with: promotion2.code)
find('#shopping-cart-coupon-code-button').click
click_on 'checkout'