Skip to content

Commit

Permalink
Merge pull request #1592 from NatLibFi/skosmos-3-scripts-hotfix
Browse files Browse the repository at this point in the history
Removed a troublesome comment line
  • Loading branch information
joelit authored Feb 1, 2024
2 parents 2c0a8f7 + b390951 commit cf80dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/scripts.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!-- Skosmos variables passed from the backend to the frontend code-->
<!-- NB: Do not add comments inside the JS object as it would break JSON parsing -->
<script id="skosmos-global-vars">
const SKOSMOS = {
"content_lang": "{{ request.contentLang }}",
Expand All @@ -23,7 +24,6 @@ const SKOSMOS = {
{%- if request.plugins.callbacks ~%}
"pluginCallbacks": [{% for function in request.plugins.callbacks %}{% if not loop.first %}, {% endif %}"{{ function }}"{% endfor %}],
{%- endif ~%}
//This is a mockup version of language_strings, the mechanism for fetching the translations strings for JS components is missing
"language_strings" :{ "fi": { "fi": "suomi",
"en": "englanti",
"se": "pohjoissaame",
Expand Down

0 comments on commit cf80dfa

Please sign in to comment.