@operato/i18n
Advanced tools
Comparing version 2.0.0-beta.15 to 2.0.0-beta.16
@@ -6,2 +6,11 @@ # Change Log | ||
## [2.0.0-beta.16](https://github.com/hatiolab/operato/compare/v2.0.0-beta.15...v2.0.0-beta.16) (2024-06-10) | ||
### :bug: Bug Fix | ||
* revert i18next version ([504b36f](https://github.com/hatiolab/operato/commit/504b36f72e0e453f84fe5d51dc6fb36226e6e58e)) | ||
## [2.0.0-beta.15](https://github.com/hatiolab/operato/compare/v2.0.0-beta.14...v2.0.0-beta.15) (2024-06-10) | ||
@@ -8,0 +17,0 @@ |
@@ -8,3 +8,2 @@ /** | ||
import _i18next from 'i18next'; | ||
import HttpBackend from 'i18next-http-backend'; | ||
const subdomain = (_a = location.pathname.match(/\/domain\/([^\/]+)/)) === null || _a === void 0 ? void 0 : _a[1]; | ||
@@ -26,8 +25,3 @@ _i18next | ||
backend: { | ||
backends: [HttpBackend], | ||
backendOptions: [ | ||
{ | ||
loadPath: subdomain ? `/domain/${subdomain}/{ns}/{lng}.json` : `/{ns}/{lng}.json` | ||
} | ||
] | ||
loadPath: subdomain ? `/domain/${subdomain}/{ns}/{lng}.json` : `/{ns}/{lng}.json` | ||
}, | ||
@@ -34,0 +28,0 @@ detection: { |
@@ -5,3 +5,3 @@ { | ||
"author": "heartyoh", | ||
"version": "2.0.0-beta.15", | ||
"version": "2.0.0-beta.16", | ||
"main": "dist/src/index.js", | ||
@@ -91,3 +91,3 @@ "module": "dist/src/index.js", | ||
}, | ||
"gitHead": "8f2297538050bd7eb288a6d9694e95411bcc2c88" | ||
"gitHead": "d39ebda0ccb386c224c25373ef3fb94465a4aba3" | ||
} |
@@ -8,3 +8,2 @@ /** | ||
import _i18next from 'i18next' | ||
import HttpBackend from 'i18next-http-backend' | ||
@@ -28,8 +27,3 @@ const subdomain = location.pathname.match(/\/domain\/([^\/]+)/)?.[1] | ||
backend: { | ||
backends: [HttpBackend], | ||
backendOptions: [ | ||
{ | ||
loadPath: subdomain ? `/domain/${subdomain}/{ns}/{lng}.json` : `/{ns}/{lng}.json` | ||
} | ||
] | ||
loadPath: subdomain ? `/domain/${subdomain}/{ns}/{lng}.json` : `/{ns}/{lng}.json` | ||
}, | ||
@@ -36,0 +30,0 @@ detection: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129269
919