Skip to content

Commit 9596bdd

Browse files
author
David Webster
committed
Fix typos
1 parent a03adca commit 9596bdd

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ GitHub Actions will be triggered and push the beta version to [npm](https://www.
173173
- merge the change into `bump-meilisearch-v*.*.*`
174174
- rebase the `vX.X.X-beta.0` branch
175175
- change the version name in `package.json`
176-
- creata a pre-release via the GitHub interface
176+
- create a pre-release via the GitHub interface
177177

178178
<hr>
179179

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ For example, given two content-types:
308308

309309
The index `product` has both the entries of shoes and shirts. If the index `product` has `350` documents in Meilisearch, it is not possible to know how many of them are from `shoes` or `shirts`.
310310

311-
When removing `shoes` or `shirts` from Meilisearch, both are removed as it would require to much processing to only remove one. You can still re-index only one after that.
311+
When removing `shoes` or `shirts` from Meilisearch, both are removed as it would require too much processing to only remove one. You can still re-index only one after that.
312312

313313
<p align="center">Example with two single types:</p>
314314
<p align="center">
@@ -652,5 +652,5 @@ If you want to know more about the development workflow or want to contribute, p
652652
Using the [foodadvisor](https://github.com/strapi/foodadvisor) restaurant demo Strapi provided. We added a searchbar to it using [instant-meilisearch](https://github.com/meilisearch/meilisearch-js-plugins/tree/main/packages/instant-meilisearch).
653653

654654
<p align="center">
655-
<img src="./assets/restaurant.gif" alt="Fooradvisor demo" width="600"/>
655+
<img src="./assets/restaurant.gif" alt="Foodadvisor demo" width="600"/>
656656
</p>

admin/src/Hooks/useAlert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ export function useAlert() {
88
/**
99
* @param {object} options
1010
* @param {string} [options.type='info']
11-
* @param {string} [options.message='SomethingoccuredinMeilisearch']
11+
* @param {string} [options.message='SomethingoccurredinMeilisearch']
1212
* @param {object} [options.link]
1313
* @param {boolean} [options.blockTransition]
1414
*/
1515
function handleNotification({
1616
type = 'info',
1717
message = i18n(
1818
'plugin.message.something',
19-
'Something occured in Meilisearch',
19+
'Something occurred in Meilisearch',
2020
),
2121
link,
2222
blockTransition = true,

admin/src/containers/Settings/PluginActions.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const PluginActions = () => {
3535
</Box>
3636
<Box paddingTop={0} paddingLeft={2} paddingRight={2} paddingBottom={2}>
3737
<Typography variant="omega" textColor="neutral800">
38-
Applies the same cleaning as when you remove the plugin. Additionnaly,
38+
Applies the same cleaning as when you remove the plugin. Additionally,
3939
it also uninstalls the plugin.
4040
</Typography>
4141
</Box>

admin/src/translations/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"plugin.message.success.add": "Request to add a content-type is successful",
3030
"plugin.message.success.update": "Request to update content-type is successful",
3131
"plugin.message.success.credentials": "Credentials successfully updated!",
32-
"plugin.message.something": "Something occured in Meilisearch",
32+
"plugin.message.something": "Something occurred in Meilisearch",
3333
"plugin.message.forbidden.title": "Forbidden",
3434
"plugin.message.forbidden.description": "You do not have permission to do this action"
3535
}

resources/meilisearch-settings/make-relationship-filterable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* }
1919
*
2020
* Since Meilisearch is expecting `category: ["Italian", "french"]` and
21-
* also `category` to be in `filterableAttributes` we can use the model configuration file to provide all these informations.
21+
* also `category` to be in `filterableAttributes` we can use the model configuration file to provide all this information.
2222
*/
2323

2424
module.exports = {

server/src/config/configuration-validation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function EntriesQuery({ configuration, collectionName }) {
135135
},
136136

137137
validateLocale() {
138-
// locale is either undefined or a none empty string
138+
// locale is either undefined or a non-empty string
139139
if (
140140
(locale !== undefined && typeof locale !== 'string') ||
141141
locale === ''
@@ -321,7 +321,7 @@ function PluginConfig({ configuration }) {
321321
},
322322

323323
validateHost() {
324-
// apiKey is either undefined or a none empty string
324+
// host is either undefined or a non-empty string
325325
if ((host !== undefined && typeof host !== 'string') || host === '') {
326326
log.error('The "host" option should be a non-empty string')
327327
} else if (host !== undefined) {
@@ -331,7 +331,7 @@ function PluginConfig({ configuration }) {
331331
},
332332

333333
validateCollections() {
334-
// Itterate over all collections to validate their configuration
334+
// Iterate over all collections to validate their configuration
335335
for (const collection in collections) {
336336
if (!isObject(collections[collection])) {
337337
log.error(

server/src/services/content-types/content-types.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ export default ({ strapi }) => ({
5757
const contentTypeUids = Object.keys(contentTypes)
5858
if (contentTypeUids.includes(contentType)) return contentType
5959

60-
const contentTypdUid = contentTypeUids.find(uid => {
60+
const contentTypeUid = contentTypeUids.find(uid => {
6161
return contentTypes[uid].modelName === contentType
6262
})
6363

64-
return contentTypdUid
64+
return contentTypeUid
6565
},
6666

6767
/**

server/src/services/meilisearch/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default ({ strapi }) => {
121121
contentType,
122122
})
123123

124-
// If the entry does not answers the predicate
124+
// If the entry does not answer the predicate
125125
if (!isValid) return filteredEntries
126126

127127
const syncFilteredEntries = await filteredEntries

server/src/services/meilisearch/connector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import Meilisearch from './client'
44
* Add one entry from a contentType to its index in Meilisearch.
55
*
66
* @param {object} options
7-
* @param {object} options.config - Configuration utililites.
8-
* @param {object} options.adapter - Adapter utililites.
7+
* @param {object} options.config - Configuration utilities.
8+
* @param {object} options.adapter - Adapter utilities.
99
* @param {string} options.contentType - ContentType name.
1010
* @param {object[] | object} options.entries - Entries to sanitize.
1111
* @returns {Promise<object[] | object>} - Sanitized entries.

0 commit comments

Comments
 (0)