remix-i18next
Advanced tools
Comparing version 2.2.0 to 2.3.0
export * from "./fetch"; | ||
export * from "./fs"; | ||
export * from "./memory"; |
export * from "./fetch"; | ||
export * from "./fs"; | ||
export * from "./memory"; |
@@ -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({ |
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
48443
39
964