Skip to content

Commit

Permalink
fix: some of the language translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinay-osseed committed Dec 14, 2023
1 parent f180958 commit 876eecc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CRM/EventCalendar/Page/ShowEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class CRM_EventCalendar_Page_ShowEvents extends CRM_Core_Page {

public function run() {
$lang = CRM_Core_I18n::getLocale() ?? 'en';
$locale = explode('_', $lang)[0];
$this->assign('site_locale', strtolower($locale));
// $locale = explode('_', $lang)[0];
$this->assign('site_locale', strtolower($lang));

CRM_Core_Resources::singleton()->addScriptFile('com.osseed.eventcalendar', 'js/moment.js', 5);
CRM_Core_Resources::singleton()->addScriptFile('com.osseed.eventcalendar', 'js/fullcalendar.js', 10);
Expand Down
Loading

0 comments on commit 876eecc

Please sign in to comment.