diff --git a/libs/js/banglejs/locale.js b/libs/js/banglejs/locale.js index afa7c8a8f..e53d1edae 100644 --- a/libs/js/banglejs/locale.js +++ b/libs/js/banglejs/locale.js @@ -47,6 +47,6 @@ exports = { name : "system", currencySym:"£", distance : (m,dp) => (m<1000)?round(m,dp)+"m":round(m/1000,dp)+"km", // meters to "123m" or "1.2km" depending on size speed : (s,dp) => round(s/1.60934,dp)+"mph",// kph to "123mph" temp : (t,dp) => round(t,dp)+"'C", // degrees C to degrees C - meridian: d => is12Hours() ? (d.getHours() <= 12) ? "am":"pm" : "", // Date to am/pm + meridian: (d,force) => (force||is12Hours()) ? (d.getHours() <= 12) ? "am":"pm" : "", // Date to am/pm is12Hours, }; diff --git a/libs/js/banglejs/locale.min.js b/libs/js/banglejs/locale.min.js index 2bb3e1bfb..2a6d0cee9 100644 --- a/libs/js/banglejs/locale.min.js +++ b/libs/js/banglejs/locale.min.js @@ -1,3 +1,3 @@ function e(a,b){void 0===b&&(b=1);return a.toFixed(Math.min(b,b-Math.floor(Math.log(a)/Math.log(10))))}function f(){void 0===g&&(g=(require("Storage").readJSON("setting.json",1)||{})["12hour"]);return g}var g;exports={name:"system",currencySym:"\xa3",translate:a=>a,date:(a,b)=>b?("0"+a.getDate()).substr(-2)+"/"+("0"+(a.getMonth()+1)).substr(-2)+"/"+a.getFullYear():a.toString().substr(4,11).trim(),time:(a,b)=>{var c=a.getHours(),d=a.getMinutes();f()&&(c=0==c%12?12:c%12); if(b)return(" "+c).substr(-2)+":"+("0"+d).substr(-2);b="am";0==c?c=12:12<=c&&(12"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ")[a.getDay()].substr(0,b?3:10),month:(a,b)=>"January February March April May June July August September October November December".split(" ")[a.getMonth()].substr(0,b?3:10),number:(a,b)=>{null==b&&(b=2);var c=a.toFixed(b),d=c|0;a= -0>a?1:0;b=(""+Math.abs(c-d).toFixed(b)).substr(2,b);d=""+d;c=d.length;for(var h="";(c-=3)>a;)h=","+d.substr(c,3)+h;return d.substr(0,c+3)+h+(b?"."+b:"")},currency:a=>{console.log("Warning: Currency information is deprecated");return"\xa3"+a.toFixed(2)},distance:(a,b)=>1E3>a?e(a,b)+"m":e(a/1E3,b)+"km",speed:(a,b)=>e(a/1.60934,b)+"mph",temp:(a,b)=>e(a,b)+"'C",meridian:a=>f()?12>=a.getHours()?"am":"pm":"",is12Hours:f} \ No newline at end of file +0>a?1:0;b=(""+Math.abs(c-d).toFixed(b)).substr(2,b);d=""+d;c=d.length;for(var h="";(c-=3)>a;)h=","+d.substr(c,3)+h;return d.substr(0,c+3)+h+(b?"."+b:"")},currency:a=>{console.log("Warning: Currency information is deprecated");return"\xa3"+a.toFixed(2)},distance:(a,b)=>1E3>a?e(a,b)+"m":e(a/1E3,b)+"km",speed:(a,b)=>e(a/1.60934,b)+"mph",temp:(a,b)=>e(a,b)+"'C",meridian:(a,b)=>b||f()?12>=a.getHours()?"am":"pm":"",is12Hours:f} \ No newline at end of file