Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remix-i18next

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remix-i18next - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

browser/backends/memory.d.ts

1

browser/backends/index.d.ts
export * from "./fetch";
export * from "./fs";
export * from "./memory";
export * from "./fetch";
export * from "./fs";
export * from "./memory";

3

browser/i18next.js

@@ -134,3 +134,4 @@ import { pick } from "accept-language-parser";

getFromSupported(language) {
return pick(this.options.supportedLanguages, language !== null && language !== void 0 ? language : this.options.fallbackLng, { loose: true });
return (pick(this.options.supportedLanguages, language !== null && language !== void 0 ? language : this.options.fallbackLng, { loose: false }) ||
pick(this.options.supportedLanguages, language !== null && language !== void 0 ? language : this.options.fallbackLng, { loose: true }));
}

@@ -137,0 +138,0 @@ async getTranslation(key) {

export * from "./fetch";
export * from "./fs";
export * from "./memory";

@@ -15,1 +15,2 @@ "use strict";

__exportStar(require("./fs"), exports);
__exportStar(require("./memory"), exports);

@@ -137,3 +137,4 @@ "use strict";

getFromSupported(language) {
return (0, accept_language_parser_1.pick)(this.options.supportedLanguages, language !== null && language !== void 0 ? language : this.options.fallbackLng, { loose: true });
return ((0, accept_language_parser_1.pick)(this.options.supportedLanguages, language !== null && language !== void 0 ? language : this.options.fallbackLng, { loose: false }) ||
(0, accept_language_parser_1.pick)(this.options.supportedLanguages, language !== null && language !== void 0 ? language : this.options.fallbackLng, { loose: true }));
}

@@ -140,0 +141,0 @@ async getTranslation(key) {

{
"name": "remix-i18next",
"version": "2.2.0",
"version": "2.3.0",
"description": "The easiest way to translate your Remix apps",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -51,3 +51,3 @@ # remix-i18next

// intialize i18next using initReactI18next and configuring it
// initialize i18next using initReactI18next and configuring it
i18next

@@ -91,3 +91,3 @@ .use(initReactI18next)

) {
// Here you also ned to initialize i18next using initReactI18next, you should
// Here you also need to initialize i18next using initReactI18next, you should
// use the same configuration as in your client side.

@@ -94,0 +94,0 @@ await i18next.use(initReactI18next).init({

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