diff --git a/language/LocaleLoader.js b/language/LocaleLoader.js index 1f11b99..3b793f1 100644 --- a/language/LocaleLoader.js +++ b/language/LocaleLoader.js @@ -50,6 +50,7 @@ class LocaleLoader { loadFile(file) { + if (process.platform === 'linux') file = file.replaceAll('\r', ''); const lines = file.split('\n'); const parsed = {}; @@ -74,9 +75,9 @@ class LocaleLoader { } parsed[matched] = text; - /*if (process.platform === 'win32')*/ for (const [key, value] of Object.entries(parsed)) { + if (process.platform === 'win32') for (const [key, value] of Object.entries(parsed)) { parsed[key] = value.replace(/^(\r)|(\r){1,}$/gu, '').replace(/\r/gu, '\n'); - console.log(String.raw`${value}`); + // console.log(String.raw`${value}`); } return parsed;