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

@trackunit/i18n-library-translation

Package Overview
Dependencies
Maintainers
4
Versions
312
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trackunit/i18n-library-translation - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

3

index.cjs.js

@@ -75,3 +75,2 @@ 'use strict';

const initializeTranslationsForApp = () => {
var _a, _b, _c;
// Get selected language from url or fallback to english

@@ -83,3 +82,3 @@ const queryString = window.location.search;

const defaultLanguage = navigator.language;
const selectedLanguage = (_c = (_b = (_a = urlParams.get("lang")) !== null && _a !== void 0 ? _a : i18nextLanguage) !== null && _b !== void 0 ? _b : savedLanguage) !== null && _c !== void 0 ? _c : defaultLanguage;
const selectedLanguage = urlParams.get("lang") ?? i18nextLanguage ?? savedLanguage ?? defaultLanguage;
// Collect default (English) translations for all namespaces

@@ -86,0 +85,0 @@ const defaultTranslations = Object.fromEntries(Object.entries(availableTranslations).map(([namespace, value]) => [namespace, value.default]));

@@ -55,3 +55,2 @@ import { jsx } from 'react/jsx-runtime';

const initializeTranslationsForApp = () => {
var _a, _b, _c;
// Get selected language from url or fallback to english

@@ -63,3 +62,3 @@ const queryString = window.location.search;

const defaultLanguage = navigator.language;
const selectedLanguage = (_c = (_b = (_a = urlParams.get("lang")) !== null && _a !== void 0 ? _a : i18nextLanguage) !== null && _b !== void 0 ? _b : savedLanguage) !== null && _c !== void 0 ? _c : defaultLanguage;
const selectedLanguage = urlParams.get("lang") ?? i18nextLanguage ?? savedLanguage ?? defaultLanguage;
// Collect default (English) translations for all namespaces

@@ -66,0 +65,0 @@ const defaultTranslations = Object.fromEntries(Object.entries(availableTranslations).map(([namespace, value]) => [namespace, value.default]));

{
"name": "@trackunit/i18n-library-translation",
"version": "1.0.7",
"version": "1.0.8",
"repository": "https://github.com/Trackunit/manager",

@@ -16,3 +16,3 @@ "license": "SEE LICENSE IN LICENSE.txt",

"i18next-resources-to-backend": "^1.1.4",
"@trackunit/iris-app-api": "^1.0.4",
"@trackunit/iris-app-api": "^1.0.5",
"@trackunit/react-core-hooks": "^1.0.5"

@@ -19,0 +19,0 @@ },

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