Skip to content

Commit

Permalink
Fix var
Browse files Browse the repository at this point in the history
Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs committed Apr 9, 2024
1 parent c28f1f3 commit 909c26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/translation-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function loadTranslations(pluginLocation) {
const filePrefix = 'pluginDefinition.i18n.';
const fileExt = '.json';
const folder = path.join(pluginLocation, 'web/assets/i18n');
let files;
let files = [];
try {
const files = fs.readdirSync(folder)
files = fs.readdirSync(folder)
.filter((filename)=> {
return filename.startsWith(filePrefix) && filename.endsWith(fileExt);
})
Expand Down

0 comments on commit 909c26a

Please sign in to comment.