I will use this to build a class with using ds and ms from @locale.
store the county specific locale for day and month, eg de-DE
var loc = {
"ds" : "So,Mo,Di,Mi,Do,Fr,Sa",
"ms":"Jan,Feb,Maerz,Apr,Mai,Jun,Jul,Aug,Sept,Okt,Nov,Dez"
};
require("Storage").write("@locale",JSON.stringify(loc));
and than use it to init the DF class
class DF {
constructor(ds, ms) {
this.ds = ds;
this.ms = ms;
}
f() { ......}
....
i() {.....}
}
loc = require("Storage").read("@locale");
df = new DF( loc.ds, loc.ms);
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Great, thanks for sharing.
I will use this to build a class with using ds and ms from
@locale
.store the county specific locale for day and month, eg
de-DE
and than use it to init the DF class
or something similar ;-)