diff --git a/benchmark/result.html b/benchmark/result.html
index 3a300ad..c9a56e3 100644
--- a/benchmark/result.html
+++ b/benchmark/result.html
@@ -16,7 +16,7 @@
});
google.charts.setOnLoadCallback(function() {
- var data = google.visualization.arrayToDataTable([["JS Libraries","Raw String","Interpolate","Plural","Plural Interpolate"],["Vue I18n",633465.3095226205,490751.674640999,572898.7072931823,432485.7407307202],["Polyglot.js",29182.762947133513,24878.02429291416,27809.533020522416,25380.31380766069],["i18next",74321.39049781616,37649.43738913464,127006.05444874118,36381.098756569176],["I18n.js",704126.2695885809,103471.83396635597,364390.557885891,111242.893023925],["Google Closure",2535803.442376795,330087.8306326557,262287.66588887724,174010.911750061],["FrenchKiss.js",20412579.72343485,7540249.012560963,9819267.856271362,7323430.074355557]]);
+ var data = google.visualization.arrayToDataTable([["JS Libraries","Raw String","Interpolate","Plural","Plural Interpolate"],["Vue I18n",879100.2661355529,591134.2317386126,777270.9570396612,528879.4115848696],["Polyglot.js",40226.94174039402,35282.119229389406,39812.98788342922,35523.487239904156],["i18next",89869.5371126247,47939.600893936215,153958.79786004967,50256.78040421447],["I18n.js",904342.9805696504,147134.24151031455,436466.4929416911,159942.10436002037],["Google Closure",2414724.8667823607,331749.4518365049,289359.19215317094,188989.91362717995],["FrenchKiss.js",29894775.18675237,11379305.696132122,14427042.205493273,10052593.336330296]]);
new google.charts.Bar(document.body).draw(data, {
chart: {
diff --git a/dist/cjs/frenchkiss.js b/dist/cjs/frenchkiss.js
index 75d3fa8..5cea089 100644
--- a/dist/cjs/frenchkiss.js
+++ b/dist/cjs/frenchkiss.js
@@ -1,6 +1,6 @@
/**
- * @license frenchkiss 0.0.7
+ * @license frenchkiss 0.0.8
* Copyright (c) 2018-2019 Koala Interactive, Inc.
* License: MIT
*/
-"use strict";var t=/^\s*\w+\s*$/,r=/^\s*(\w+)\s*,\s*(select|plural)\s*,/i,n=JSON.stringify,e=function(t){return'(p["'+t+'"]||(p["'+t+'"]=="0"?0:""))'};function u(t){for(var r={},u=function t(r,u){var o=[];var f=r.length;for(var i=0;i'(p["'+t+'"]||(p["'+t+'"]=="0"?0:""))';function l(t){const e={},l=function t(e,l){const o=[];const r=e.length;for(let c=0;ct;const h=(t,e)=>(c[e]||(c[e]={}),!c[e][t]&&f[e]&&"string"==typeof f[e][t]&&(c[e][t]=l(f[e][t])),c[e][t]),g=(t,e,n)=>{let s,l=n||i;return l&&(s=h(t,l)),!s&&p&&(s=h(t,l=p)),s?s(e,u[l]):a(t)},d=t=>{a=t},m=t=>(t&&(i=t),i),y=t=>(t&&(p=t),p),b=(t,e)=>{c[t]={},f[t]=e},j=(t,e)=>{u[t]=e},k=(t,e)=>{f[t]||(f[t]={}),c[t]||(c[t]={});const n=Object.keys(e),s=n.length;for(let l=0;l{delete c[t],delete f[t]};export default{cache:c,store:f,t:g,onMissingKey:d,locale:m,fallback:y,set:b,unset:w,extend:k,plural:j};export{c as cache,f as store,g as t,d as onMissingKey,m as locale,y as fallback,b as set,j as plural,k as extend,w as unset};
+const t=/^\s*\w+\s*$/,e=/^\s*(\w+)\s*,\s*(select|plural)\s*,/i,n=JSON.stringify,s=t=>'(p["'+t+'"]||(p["'+t+'"]=="0"?0:"'+t+'" in p?"":v("'+t+'",k,l)))';function l(t){const e={},l=function t(e,l){const o=[];const r=e.length;for(let c=0;ct,h=()=>"";const g=(t,e)=>(c[e]||(c[e]={}),!c[e][t]&&i[e]&&"string"==typeof i[e][t]&&(c[e][t]=l(i[e][t])),c[e][t]),b=(t,e,n)=>{let s,l=n||u;return l&&(s=g(t,l))?s(e,f[l],t,l,h):(l=p)&&(s=g(t,l))?s(e,f[l],t,l,h):a(t)},d=t=>{a=t},k=t=>{h=t},m=t=>(t&&(u=t),u),y=t=>(t&&(p=t),p),j=(t,e)=>{c[t]={},i[t]=e},v=(t,e)=>{f[t]=e},w=(t,e)=>{i[t]||(i[t]={}),c[t]||(c[t]={});const n=Object.keys(e),s=n.length;for(let l=0;l{delete c[t],delete i[t]};export default{cache:c,store:i,t:b,onMissingKey:d,onMissingVariable:k,locale:m,fallback:y,set:j,unset:x,extend:w,plural:v};export{c as cache,i as store,b as t,d as onMissingKey,k as onMissingVariable,m as locale,y as fallback,j as set,v as plural,w as extend,x as unset};
diff --git a/dist/umd/frenchkiss.js b/dist/umd/frenchkiss.js
index 263e901..6f919fd 100644
--- a/dist/umd/frenchkiss.js
+++ b/dist/umd/frenchkiss.js
@@ -1,6 +1,6 @@
/**
- * @license frenchkiss 0.0.7
+ * @license frenchkiss 0.0.8
* Copyright (c) 2018-2019 Koala Interactive, Inc.
* License: MIT
*/
-var e,t;e=this,t=function(){"use strict";var e=/^\s*\w+\s*$/,t=/^\s*(\w+)\s*,\s*(select|plural)\s*,/i,n=JSON.stringify,r=function(e){return'(p["'+e+'"]||(p["'+e+'"]=="0"?0:""))'};function u(e){for(var t={},u=function e(t,u){var f=[];var o=t.length;for(var i=0;i",
"license": "MIT",