Skip to content

Commit

Permalink
fix: fixed typo in config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonbrad authored Aug 19, 2024
1 parent 5a52e6d commit 4f1cab9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ export async function loadConfig(config_file) {
}

// We extract the translators.
if (content.has("translator")) {
for (const translator of content.get("translator")) {
if (content.has("translators")) {
for (const translator of content.get("translators")) {
const key = translator[0];
const value = translator[1];
const data = await httpGet(new URL(value, file_path).href);
const data = await httpGet(new URL(value, config_file).href);

global.afrim.translators[key] = data;
}
Expand Down

0 comments on commit 4f1cab9

Please sign in to comment.