Skip to content

Commit

Permalink
Fix gen
Browse files Browse the repository at this point in the history
  • Loading branch information
ay8s committed Jan 12, 2024
1 parent 9e65aad commit 6d8540d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/generate-calendars.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const ics = require("ics");
const dayjs = require("dayjs");

// Grab the current i18n config
let i18nConfig = fs.readFileSync("i18n.json");
let i18nConfig = fs.readFileSync("_i18n.json");
let i18n = JSON.parse(i18nConfig);

// Functions
Expand Down Expand Up @@ -114,7 +114,7 @@ function generateCalendars(siteKey){
}

let i18nStrings = fs.readFileSync(`locales/${language}/localization.json`);
let localizedStrings = JSON.parse(i18nStrings);
let localizedStrings = JSON.parse(i18nStrings)["All"];

var languageFilesnames = language == "en" ? fileNames : localizedFilenames;

Expand Down

0 comments on commit 6d8540d

Please sign in to comment.