Update fuzzyw.app.js
parent
cc0e5f14b1
commit
61c5c04c13
|
|
@ -1,12 +1,14 @@
|
||||||
|
|
||||||
// adapted from https://github.com/hallettj/Fuzzy-Text-International/
|
// adapted from https://github.com/hallettj/Fuzzy-Text-International/
|
||||||
const fuzzy_strings = require("Storage").readJSON("fuzzy_strings.json");
|
const fuzzy_strings = require("Storage").readJSON("fuzzy_strings.json");
|
||||||
|
|
||||||
const SETTINGS_FILE = "fuzzyw.settings.json";
|
const SETTINGS_FILE = "fuzzyw.settings.json";
|
||||||
let settings = require("Storage").readJSON(SETTINGS_FILE,1)|| {'language': 'en_GB', 'alignment':'Centre'};
|
let settings = require("Storage").readJSON(SETTINGS_FILE,1)|| {'language': 'System', 'alignment':'Centre'};
|
||||||
|
|
||||||
|
if (settings.language == 'System') {
|
||||||
|
settings.language = require('locale').name;
|
||||||
|
}
|
||||||
|
|
||||||
let fuzzy_string = fuzzy_strings[settings.language];
|
let fuzzy_string = fuzzy_strings[settings.language];
|
||||||
//let fuzzy_string = fuzzy_strings['en_GB'];
|
|
||||||
|
|
||||||
const h = g.getHeight();
|
const h = g.getHeight();
|
||||||
const w = g.getWidth();
|
const w = g.getWidth();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue