diff --git a/dist/index.js b/dist/index.js index 3d68b97..9b1e046 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26605,6 +26605,7 @@ function saveJSONFile(filePath, data) { } function updateJSONFiles(baseFileName, directory) { + /* const baseFilePath = path.join(directory, baseFileName); const baseData = loadJSONFile(baseFilePath); @@ -26615,6 +26616,7 @@ function updateJSONFiles(baseFileName, directory) { .forEach(key => { sortedBaseData[key] = baseData[key]; }); + */ fs.readdirSync(directory).forEach(filename => { const filePath = path.join(directory, filename); @@ -26624,11 +26626,12 @@ function updateJSONFiles(baseFileName, directory) { // Check if keys are in alphabetical order const keys = Object.keys(otherData); for (let i = 1; i < keys.length; i++) { - if (keys[i].toLowerCase() < keys[i - 1].toLowerCase()) { + if (keys[i] < keys[i - 1]) { throw new Error('Keys are not alphabetized in ' + filename); } } } + /* if (filename.endsWith('.json') && filename !== baseFileName) { let otherData = loadJSONFile(filePath); @@ -26657,6 +26660,7 @@ function updateJSONFiles(baseFileName, directory) { saveJSONFile(filePath, sortedOtherData); } + */ }); } diff --git a/package.json b/package.json index 28b8c99..b133e74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "audiobookshelf-i18n-updater", - "version": "1.0.0", + "version": "1.3.0", "description": "A GitHub action that validates the localization files are alphabetized and copies any missing keys from the English file", "main": "index.js", "scripts": {