You are reading a single comment by @MaBe and its replies. Click here to read the full conversation.
  • 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

        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);
    
    

    or something similar ;-)

About

Avatar for MaBe @MaBe started