Skip to content

Commit

Permalink
fix: align addDetector impementation to type definition #282
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Mar 30, 2024
1 parent 9ad3019 commit 2503cb1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 7.2.1

- fix: align addDetector impementation to type definition [282](https://github.com/i18next/i18next-browser-languageDetector/issues/282)

### 7.2.0

- fix: separate cjs and mjs typings
Expand Down
1 change: 1 addition & 0 deletions i18nextBrowserLanguageDetector.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@
key: "addDetector",
value: function addDetector(detector) {
this.detectors[detector.name] = detector;
return this;
}
}, {
key: "detect",
Expand Down
2 changes: 1 addition & 1 deletion i18nextBrowserLanguageDetector.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class Browser {

addDetector(detector) {
this.detectors[detector.name] = detector;
return this;
}

detect(detectionOrder) {
Expand Down

0 comments on commit 2503cb1

Please sign in to comment.