@appnest/lit-translate
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -34,4 +34,5 @@ import { directive } from "lit-html"; | ||
function handleTranslation(part, key, values) { | ||
// Grab the values | ||
values = (typeof values === "function") ? values() : values; | ||
// Translate the key and interpolate the values | ||
values = (values != null && typeof values === "function") ? values() : values; | ||
const translation = get(key, values); | ||
@@ -38,0 +39,0 @@ // Only set the value if the cache has changed |
{ | ||
"name": "@appnest/lit-translate", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"license": "MIT", | ||
@@ -56,4 +56,4 @@ "module": "index.js", | ||
"devDependencies": { | ||
"@appnest/web-config": "0.1.19" | ||
"@appnest/web-config": "0.1.24" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
293
22590