Skip to content

Commit f9c9c86

Browse files
authored
Fix typos and grammar (#285)
1 parent 026a335 commit f9c9c86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![npm version](https://img.shields.io/npm/v/i18next-browser-languagedetector.svg?style=flat-square)](https://www.npmjs.com/package/i18next-browser-languagedetector)
44

5-
This is a i18next language detection plugin use to detect user language in the browser with support for:
5+
This is an i18next language detection plugin used to detect user language in the browser, with support for:
66

77
- cookie (set cookie i18next=LANGUAGE)
88
- sessionStorage (set key i18nextLng=LANGUAGE)
@@ -39,7 +39,7 @@ i18next.use(LanguageDetector).init({
3939
});
4040
```
4141

42-
As with all modules you can either pass the constructor function (class) to the i18next.use or a concrete instance.
42+
As with all modules you can either pass the constructor function (class) to the `i18next.use` or to a concrete instance.
4343

4444
[`supportedLngs`](https://www.i18next.com/overview/configuration-options#languages-namespaces-resources) is optional, but allows i18next to pick the best match from the list of detected languages. If it's not set then [`language`](https://www.i18next.com/overview/api#language) will be set to the first detected language, regardless of whether your application has translations for that language or not.
4545

@@ -63,7 +63,7 @@ As with all modules you can either pass the constructor function (class) to the
6363
caches: ['localStorage', 'cookie'],
6464
excludeCacheFor: ['cimode'], // languages to not persist (cookie, localStorage)
6565

66-
// optional expire and domain for set cookie
66+
// optional expiry and domain for set cookie
6767
cookieMinutes: 10,
6868
cookieDomain: 'myDomain',
6969

@@ -73,7 +73,7 @@ As with all modules you can either pass the constructor function (class) to the
7373
// optional set cookie options, reference:[MDN Set-Cookie docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie)
7474
cookieOptions: { path: '/', sameSite: 'strict' },
7575

76-
// optional conversion function to use to modify the detected language code
76+
// optional conversion function used to modify the detected language code
7777
convertDetectedLanguage: 'Iso15897',
7878
convertDetectedLanguage: (lng) => lng.replace('-', '_')
7979
}

0 commit comments

Comments
 (0)