Skip to content

Commit

Permalink
use grav.language.getLanguage - hint from Ulrich Wolf
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerjoss committed May 20, 2021
1 parent c4be0f5 commit 090ba21
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions templates/partials/fullcalendar.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<div id='cfgFilestring' style='display:none;'>{{ icsfile }}</div>
<div id='BgColstring' style='display:none;'>{{ config.plugins.fullcalendar.colors }}</div>
<div id='CorsUrl' style='display:none;'>{{ config.plugins.fullcalendar.cors_api_url }}</div>
{% if config.site.default_lang %} {# use site default lang, if set, else 1st supported lang from system config #}
<div id='cfgLocale' style='display:none;'>{{ config.site.default_lang }}</div>
{% else %}
<div id='cfgLocale' style='display:none;'>{{ config.system.languages.supported[0] }}</div>
{% endif %}
<div id='cfgLocale' style='display:none;'>{{ grav.language.getLanguage }}</div>
<div id='showlegend' style='display:none;'>{{ config.plugins.fullcalendar.showlegend }}</div>
<div id='tzoffset' style='display:none;'>{{ config.plugins.fullcalendar.tz_offset }}</div>

0 comments on commit 090ba21

Please sign in to comment.