Skip to content

Commit

Permalink
locales are now in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Nov 29, 2024
1 parent 31a0ed6 commit bce2886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LiturgyOfTheDay.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function __construct()
))[0];
if ($this->NationalCalendar !== 'VA') {
// TODO: allow to request a different locale among those that are supported by the requested calendar
$this->Locale = $NationalCalendarMetadata["settings"]["locales"][0];
$this->Locale = $NationalCalendarMetadata["metadata"]["locales"][0];
}
}

Expand All @@ -251,7 +251,7 @@ public function __construct()
fn($nationalCalendar) => $nationalCalendar['calendar_id'] === $DiocesanCalendarMetadata["nation"]
))[0];
// TODO: allow to request a different locale among those that are supported by the requested calendar
$this->Locale = $NationalCalendarMetadata["settings"]["locales"][0];
$this->Locale = $NationalCalendarMetadata["metadata"]["locales"][0];
}

if (isset($_GET["timezone"]) && LiturgyOfTheDay::isValidTimezone($_GET["timezone"])) {
Expand Down

0 comments on commit bce2886

Please sign in to comment.