New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@operato/i18n

Package Overview
Dependencies
Maintainers
6
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@operato/i18n - npm Package Compare versions

Comparing version 2.0.0-alpha.57 to 2.0.0-alpha.59

9

CHANGELOG.md

@@ -6,2 +6,11 @@ # Change Log

## [2.0.0-alpha.59](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.58...v2.0.0-alpha.59) (2024-04-11)
### :bug: Bug Fix
* domain specific i18n ([f4e4fa0](https://github.com/hatiolab/operato/commit/f4e4fa050ebb5625bfb497f87e93093ea0818e75))
## [2.0.0-alpha.57](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.56...v2.0.0-alpha.57) (2024-04-07)

@@ -8,0 +17,0 @@

5

dist/src/config.js
/**
* @license Copyright © HatioLab Inc. All rights reserved.
*/
// import Backend from 'i18next-http-backend'
var _a;
import { Backend } from './http-backend';
import LngDetector from 'i18next-browser-languagedetector';
import _i18next from 'i18next';
const subdomain = (_a = location.pathname.match(/\/domain\/([^\/]+)/)) === null || _a === void 0 ? void 0 : _a[1];
_i18next

@@ -23,3 +24,3 @@ .use(LngDetector)

backend: {
loadPath: '/{ns}/{lng}.json'
loadPath: subdomain ? `/domain/${subdomain}/{ns}/{lng}.json` : `/{ns}/{lng}.json`
},

@@ -26,0 +27,0 @@ detection: {

4

package.json

@@ -5,3 +5,3 @@ {

"author": "heartyoh",
"version": "2.0.0-alpha.57",
"version": "2.0.0-alpha.59",
"main": "dist/src/index.js",

@@ -91,3 +91,3 @@ "module": "dist/src/index.js",

},
"gitHead": "2786e62dc37ead8c5a858869baa5c083dce24e93"
"gitHead": "54cb91b22d4949cbae84235292e31a06cf054fa6"
}

@@ -5,3 +5,2 @@ /**

// import Backend from 'i18next-http-backend'
import { Backend } from './http-backend'

@@ -11,2 +10,4 @@ import LngDetector from 'i18next-browser-languagedetector'

const subdomain = location.pathname.match(/\/domain\/([^\/]+)/)?.[1]
_i18next

@@ -27,3 +28,3 @@ .use(LngDetector)

backend: {
loadPath: '/{ns}/{lng}.json'
loadPath: subdomain ? `/domain/${subdomain}/{ns}/{lng}.json` : `/{ns}/{lng}.json`
},

@@ -30,0 +31,0 @@ detection: {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc