next-i18next 4.4.2 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,10 +54,6 @@ var NextI18Next = function NextI18Next(userConfig) {
54
54
  this.consoleMessage = _utils.consoleMessage.bind(this);
55
55
  /* Validation */
56
56
 
57
- if (this.config.otherLanguages.length <= 0) {
58
- throw new Error('To properly initialise a next-i18next instance you must provide one or more locale codes in config.otherLanguages.');
59
- }
60
-
61
57
  this.withNamespaces = function () {
62
58
  throw new Error('next-i18next has upgraded to react-i18next v10 - please rename withNamespaces to withTranslation.');
63
59
  };
package/dist/es/index.js CHANGED
@@ -13,10 +13,6 @@ export default class NextI18Next {
13
13
  this.consoleMessage = consoleMessage.bind(this);
14
14
  /* Validation */
15
15
 
16
- if (this.config.otherLanguages.length <= 0) {
17
- throw new Error('To properly initialise a next-i18next instance you must provide one or more locale codes in config.otherLanguages.');
18
- }
19
-
20
16
  this.withNamespaces = () => {
21
17
  throw new Error('next-i18next has upgraded to react-i18next v10 - please rename withNamespaces to withTranslation.');
22
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-i18next",
3
- "version": "4.4.2",
3
+ "version": "4.5.0",
4
4
  "repository": "git@github.com:isaachinman/next-i18next.git",
5
5
  "author": "Isaac Hinman <isaac@isaachinman.com>",
6
6
  "funding": {
@@ -69,7 +69,6 @@
69
69
  "@babel/preset-env": "^7.5.5",
70
70
  "@babel/preset-react": "^7.0.0",
71
71
  "@babel/preset-typescript": "^7.3.3",
72
- "@types/express": "^4.16.1",
73
72
  "@types/jest": "^24.0.16",
74
73
  "@types/jest-environment-puppeteer": "^4.0.0",
75
74
  "@types/react": "^16.8.4",
@@ -100,6 +99,7 @@
100
99
  "typescript": "^3.5.3"
101
100
  },
102
101
  "dependencies": {
102
+ "@types/express": "^4.16.1",
103
103
  "core-js": "^2",
104
104
  "detect-node": "^2.0.4",
105
105
  "hoist-non-react-statics": "^3.2.0",