Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix random typos (#36505)

Jarek Radosz4a9280542ebe
diff --git a/frontend/discourse-i18n/src/index.js b/frontend/discourse-i18n/src/index.js
index 1fe78a34cef..d7aed954a4e 100644
--- a/frontend/discourse-i18n/src/index.js
+++ b/frontend/discourse-i18n/src/index.js
@@ -22,7 +22,7 @@ export class I18n {
noFallbacks = false;
testing = false;
verbose = false;
- verboseIndicies = new Map();
+ verboseIndices = new Map();
pluralizationRules = Cardinals;
@@ -442,10 +442,10 @@ export class I18n {
_verboseTranslate(scope, options) {
const result = this._translate(scope, options);
- let i = this.verboseIndicies.get(scope);
+ let i = this.verboseIndices.get(scope);
if (!i) {
- i = this.verboseIndicies.size + 1;
- this.verboseIndicies.set(scope, i);
+ i = this.verboseIndices.size + 1;
+ this.verboseIndices.set(scope, i);
}
let message = `Translation #${i}: ${scope}`;
if (options && Object.keys(options).length > 0) {
diff --git a/frontend/discourse/app/instance-initializers/viewport-setup.js b/frontend/discourse/app/instance-initializers/viewport-setup.js
index 7e2d3f312f9..5a895f27cd0 100644
--- a/frontend/discourse/app/instance-initializers/viewport-setup.js
+++ b/frontend/discourse/app/instance-initializers/viewport-setup.js
@@ -26,7 +26,7 @@ export default {
// we use two different strategies.
if (caps.isiOSPWA || caps.isAppWebview) {
// For PWA/Hub, we lock the viewport zoom temporarily during `focusin` events.
- // Unfortunately this doesn't catch the case when an input is already autofocussed, but the
+ // Unfortunately this doesn't catch the case when an input is already autofocused, but the
// keyboard isn't open yet. But it's better than nothing.
this.lockViewportDuringFocus(viewport, value);
} else {
diff --git a/frontend/discourse/app/modifiers/grippie-drag-resize.js b/frontend/discourse/app/modifiers/grippie-drag-resize.js
index 5ab2fe1e690..dd4a379309c 100644
--- a/frontend/discourse/app/modifiers/grippie-drag-resize.js
+++ b/frontend/discourse/app/modifiers/grippie-drag-resize.js
@@ -51,11 +51,11 @@ export default class GrippieDragResize extends Modifier {
this.originalResizableElementHeight = this.resizableElement.offsetHeight;
this.lastMousePos = mouseYPos(event);
- this._throttledPeformDragHandler = this.throttledPerformDrag.bind(this);
+ this._throttledPerformDragHandler = this.throttledPerformDrag.bind(this);
this._endDragHandler = this.endDragHandler.bind(this);
DRAG_EVENTS.forEach((dragEvent) => {
- document.addEventListener(dragEvent, this._throttledPeformDragHandler, {
+ document.addEventListener(dragEvent, this._throttledPerformDragHandler, {
capture: true,
});
});
@@ -73,7 +73,7 @@ export default class GrippieDragResize extends Modifier {
DRAG_EVENTS.forEach((dragEvent) => {
document.removeEventListener(
dragEvent,
- this._throttledPeformDragHandler,
+ this._throttledPerformDragHandler,
{
capture: true,
}
diff --git a/plugins/discourse-ai/lib/ai_bot/entry_point.rb b/plugins/discourse-ai/lib/ai_bot/entry_point.rb
index 0ef2ed964da..c1ecd3848be 100644
--- a/plugins/discourse-ai/lib/ai_bot/entry_point.rb
+++ b/plugins/discourse-ai/lib/ai_bot/entry_point.rb
@@ -23,7 +23,7 @@ module DiscourseAi
def self.find_user_from_model(model_name)
# Hack(Roman): Added this because Command R Plus had a different in the bot settings.
- # Will eventually ammend it with a data migration.
+ # Will eventually amend it with a data migration.
name = model_name
name = "command-r-plus" if name == "cohere-command-r-plus"
diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/services/discourse-post-event-api.js b/plugins/discourse-calendar/assets/javascripts/discourse/services/discourse-post-event-api.js
index 8a0b874f728..c92d48252f0 100644
--- a/plugins/discourse-calendar/assets/javascripts/discourse/services/discourse-post-event-api.js
+++ b/plugins/discourse-calendar/assets/javascripts/discourse/services/discourse-post-event-api.js
@@ -5,7 +5,7 @@ import DiscoursePostEventInvitee from "discourse/plugins/discourse-calendar/disc
import DiscoursePostEventInvitees from "discourse/plugins/discourse-calendar/discourse/models/discourse-post-event-invitees";
/**
- * Discoure post event API service. Provides methods to interact with the discourse post event API.
+ * Discourse post event API service. Provides methods to interact with the discourse post event API.
*
* @module DiscoursePostEventApi
* @implements {@ember/service}
diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/services/post-calendar.js b/plugins/discourse-calendar/assets/javascripts/discourse/services/post-calendar.js
index 7625d078249..403168b124a 100644
--- a/plugins/discourse-calendar/assets/javascripts/discourse/services/post-calendar.js
+++ b/plugins/discourse-calendar/assets/javascripts/discourse/services/post-calendar.js
@@ -1,7 +1,7 @@
import Service from "@ember/service";
/**
- * Discoure post event API service. Provides methods to refresh the current post calendar.
+ * Discourse post event API service. Provides methods to refresh the current post calendar.
*
* @module PostCalendar
* @implements {@ember/service}
diff --git a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_transcript.rb b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_transcript.rb
index bfcec1a547c..8e81d208663 100644
--- a/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_transcript.rb
+++ b/plugins/discourse-chat-integration/lib/discourse_chat_integration/provider/slack/slack_transcript.rb
@@ -13,7 +13,7 @@ module DiscourseChatIntegration::Provider::SlackProvider
@requested_thread_ts = requested_thread_ts
@first_message_index = 0
- @last_message_index = -1 # We can use negative array indicies to select the last message - fancy!
+ @last_message_index = -1 # We can use negative array indices to select the last message - fancy!
end
def set_first_message_by_ts(ts)
diff --git a/spec/system/admin_customize_themes_spec.rb b/spec/system/admin_customize_themes_spec.rb
index 2bbf6fac434..597e0106064 100644
--- a/spec/system/admin_customize_themes_spec.rb
+++ b/spec/system/admin_customize_themes_spec.rb
@@ -119,7 +119,7 @@ describe "Admin Customize Themes", type: :system do
expect(page).to have_no_css(".delete")
end
- it "hides unecessary sections and buttons for system themes" do
+ it "hides unnecessary sections and buttons for system themes" do
theme.set_field(
target: :extra_js,
name: "discourse/api-initializers/test.js",
@@ -270,7 +270,7 @@ describe "Admin Customize Themes", type: :system do
end
end
- context "when visting a component's page" do
+ context "when visiting a component's page" do
fab!(:component) { Fabricate(:theme, component: true, name: "Cool component 493") }
it "has a link to the components page" do
diff --git a/spec/system/admin_user_spec.rb b/spec/system/admin_user_spec.rb
index ab11201b58c..bc45b7cf42a 100644
--- a/spec/system/admin_user_spec.rb
+++ b/spec/system/admin_user_spec.rb
@@ -32,7 +32,7 @@ describe "Admin User Page", type: :system do
end
end
- context "when visting a regular user's page" do
+ context "when visiting a regular user's page" do
fab!(:user) { Fabricate(:user, ip_address: "93.123.44.90") }
fab!(:similar_user) { Fabricate(:user, ip_address: user.ip_address) }
fab!(:another_mod) { Fabricate(:moderator, ip_address: user.ip_address) }
diff --git a/themes/horizon/spec/system/user_color_palette_selector_spec.rb b/themes/horizon/spec/system/user_color_palette_selector_spec.rb
index 8ba416cf94d..d381f040393 100644
--- a/themes/horizon/spec/system/user_color_palette_selector_spec.rb
+++ b/themes/horizon/spec/system/user_color_palette_selector_spec.rb
@@ -37,7 +37,7 @@ describe "Horizon theme | User color palette selector", type: :system do
describe "for logged in user" do
before { sign_in(current_user) }
- it "can open the user color palette menu and select a palette, which is preseved on reload" do
+ it "can open the user color palette menu and select a palette, which is preserved on reload" do
visit "/"
palette_selector.open_palette_menu
palette_selector.click_palette_menu_item(marigold_palette.name)
@@ -74,7 +74,7 @@ describe "Horizon theme | User color palette selector", type: :system do
context "when the theme is not default but is selected by a user" do
let(:set_theme_as_default) { false }
- it "can open the user color palette menu and select a palette, which is preseved on reload" do
+ it "can open the user color palette menu and select a palette, which is preserved on reload" do
theme.update!(user_selectable: true)
current_user.user_option.update!(theme_ids: [theme.id])
visit "/"
@@ -90,7 +90,7 @@ describe "Horizon theme | User color palette selector", type: :system do
end
describe "for anon" do
- it "can open the user color palette menu and select a palette, which is preseved on reload" do
+ it "can open the user color palette menu and select a palette, which is preserved on reload" do
visit "/"
palette_selector.open_palette_menu
palette_selector.click_palette_menu_item(marigold_palette.name)