7.0: ui refresh and more
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import * as fs from "fs";
|
||||
import { appName, links, repo } from "../modules/config.js";
|
||||
import { links, repo } from "../modules/config.js";
|
||||
import loadJson from "../modules/sub/loadJSON.js";
|
||||
|
||||
const locPath = './src/localization/languages';
|
||||
@@ -16,7 +16,7 @@ export async function loadLoc() {
|
||||
}
|
||||
|
||||
export function replaceBase(s) {
|
||||
return s.replace(/\n/g, '<br/>').replace(/{saveToGalleryShortcut}/g, links.saveToGalleryShortcut).replace(/{appName}/g, appName).replace(/{repo}/g, repo).replace(/\*;/g, "•");
|
||||
return s.replace(/\n/g, '<br/>').replace(/{saveToGalleryShortcut}/g, links.saveToGalleryShortcut).replace(/{repo}/g, repo).replace(/\*;/g, "•");
|
||||
}
|
||||
export function replaceAll(lang, str, string, replacement) {
|
||||
let s = replaceBase(str[string])
|
||||
|
||||
Reference in New Issue
Block a user