Bonjour ♪
Sorry to ask...
I would like a talent to look, for the glory of the cookiespolicy plug of Grav, the code below and correct the js script below (from cookiespolicy.html.twig file of the plugin) if possible.
Thanks in advance.
<script>
document.addEventListener('DOMContentLoaded', function(event) {
cookieChoices.showCookieConsent{{ cookiespolicy_type|capitalize }}('{{ cookiespolicy_message }}_{{ langswitcher.current }}','{{ cookiespolicy_btn_close}}_{{ langswitcher.current }}','{{ cookiespolicy_btn_privacy }}_{{ langswitcher.current }}','{{ cookiespolicy_url }}_{{ langswitcher.current }}');
});
</script>
I am trying to change the following strings of file cookiespolicy.yaml:
messagebtn_closebtn_privacyurl
to
(say for instance my current language in page would be japanese: 'ja' > 'langswitcher.current' would be = 'ja')
message``_ja>message_jabtn_close``_ja>btn_close_jabtn_privacy``_ja>btn_privacy_jaurl``_ja>urlstring
etc ...
Thank you in advance for support ☆