docs: Change all the word "initialization" to "initialisation" (#10708)

* Docs: Change all initizlisation to initialisation

* Reverted to "initialization" when asserting errors with specific message

* Reverted to "initialization" where related to specific error message
pull/10744/head
Mostafa Kheibary 4 months ago committed by GitHub
parent 282d62baae
commit e16591abe8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2,4 +2,4 @@
'svelte': patch
---
fix: port over props that were set prior to initialization
fix: port over props that were set prior to initialisation

@ -212,7 +212,7 @@ If a statement consists entirely of an assignment to an undeclared variable, Sve
A _store_ is an object that allows reactive access to a value via a simple _store contract_. The [`svelte/store` module](/docs/svelte-store) contains minimal store implementations which fulfil this contract.
Any time you have a reference to a store, you can access its value inside a component by prefixing it with the `$` character. This causes Svelte to declare the prefixed variable, subscribe to the store at component initialization and unsubscribe when appropriate.
Any time you have a reference to a store, you can access its value inside a component by prefixing it with the `$` character. This causes Svelte to declare the prefixed variable, subscribe to the store at component initialisation and unsubscribe when appropriate.
Assignments to `$`-prefixed variables require that the variable be a writable store, and will result in a call to the store's `.set` method.

@ -742,7 +742,7 @@
- fix: allow `bind:this` with dynamic type on inputs ([#9713](https://github.com/sveltejs/svelte/pull/9713))
- fix: port over props that were set prior to initialization ([#9704](https://github.com/sveltejs/svelte/pull/9704))
- fix: port over props that were set prior to initialisation ([#9704](https://github.com/sveltejs/svelte/pull/9704))
- feat: $inspect rune ([#9705](https://github.com/sveltejs/svelte/pull/9705))

@ -132,7 +132,7 @@ class FuzzySet {
/** @param {string[]} arr */
constructor(arr) {
// initialization
// initialisation
for (let i = GRAM_SIZE_LOWER; i < GRAM_SIZE_UPPER + 1; ++i) {
this.items[i] = [];
}

@ -125,7 +125,7 @@ export function set(signal, value) {
// $effect(() => x++)
//
// We additionally want to skip this logic for when ignore_mutation_validation is
// true, as stores write to source signal on initialization.
// true, as stores write to source signal on initialisation.
if (
is_runes(null) &&
!ignore_mutation_validation &&

Loading…
Cancel
Save