5.2
- page render caching - onDemand block caching - page html minify - better rate limiting - minor cobalt.js clean up - page render platform indication in settings popup all these changes are aimed to improve performance and responsiveness !! not final version of 5.2 !!
This commit is contained in:
@@ -5,16 +5,19 @@ import loadJson from "../modules/sub/loadJSON.js";
|
||||
const locPath = './src/localization/languages'
|
||||
|
||||
let loc = {}
|
||||
let languages = [];
|
||||
|
||||
export function loadLoc() {
|
||||
fs.readdir(locPath, (err, files) => {
|
||||
if (err) return false;
|
||||
files.forEach(file => {
|
||||
loc[file.split('.')[0]] = loadJson(`${locPath}/${file}`)
|
||||
loc[file.split('.')[0]] = loadJson(`${locPath}/${file}`);
|
||||
languages.push(file.split('.')[0])
|
||||
});
|
||||
})
|
||||
}
|
||||
loadLoc();
|
||||
|
||||
export function replaceBase(s) {
|
||||
return s.replace(/\n/g, '<br/>').replace(/{appName}/g, appName).replace(/{repo}/g, repo).replace(/\*;/g, "•");
|
||||
}
|
||||
@@ -42,3 +45,4 @@ export default function(lang, string, replacement) {
|
||||
return `!!${string}!!`
|
||||
}
|
||||
}
|
||||
export let languageList = languages;
|
||||
|
||||
Reference in New Issue
Block a user