remix-i18next
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -119,4 +119,8 @@ import { pick } from "accept-language-parser"; | ||
get cacheEnabled() { | ||
return (this.options.cacheInDevelopment && process.env.NODE_ENV === "development"); | ||
let env = process.env.NODE_ENV; | ||
if (env === "production") | ||
return true; | ||
let { cacheInDevelopment } = this.options; | ||
return cacheInDevelopment !== null && cacheInDevelopment !== void 0 ? cacheInDevelopment : false; | ||
} | ||
} |
@@ -122,5 +122,9 @@ "use strict"; | ||
get cacheEnabled() { | ||
return (this.options.cacheInDevelopment && process.env.NODE_ENV === "development"); | ||
let env = process.env.NODE_ENV; | ||
if (env === "production") | ||
return true; | ||
let { cacheInDevelopment } = this.options; | ||
return cacheInDevelopment !== null && cacheInDevelopment !== void 0 ? cacheInDevelopment : false; | ||
} | ||
} | ||
exports.RemixI18Next = RemixI18Next; |
{ | ||
"name": "remix-i18next", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "The easiest way to translate your Remix apps", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
41091
828