Skip to content

Commit

Permalink
tarteaucitron: Fix error setting the language
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed Dec 4, 2024
1 parent be0468e commit 7b14b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/Ilch/Layout/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ public function getHeader(): string
}
</style>
<script>
var tarteaucitronForceLanguage = "' . substr($this->getTranslator()->getLocale(), 2) . '";
var tarteaucitronForceLanguage = "' . substr($this->getTranslator()->getLocale(), 0, 2) . '";
tarteaucitronCustomText = {
"close": "' . $this->getTrans('dismissBTNText') . '",
"denyAll": "' . $this->getTrans('denyBTNText') . '",
Expand Down

0 comments on commit 7b14b72

Please sign in to comment.