We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1496518 commit 02f3b73Copy full SHA for 02f3b73
layouts/_default/baseof.html
@@ -5,6 +5,7 @@
5
{{ partial "seo" . }}
6
{{ partial "styles" . }}
7
{{ partial "scripts" . }}
8
+ {{ partial "i18n-js" . }}
9
</head>
10
<body class="fs-7 fw-400 preload">
11
<div class="template flex column">
layouts/partials/i18n-js.html
@@ -0,0 +1,8 @@
1
+{{- $i18n := dict
2
+ "copy" (i18n "copy")
3
+ "copied" (i18n "copied")
4
+-}}
+
+<script>
+ window.I18N = {{ $i18n | jsonify | safeJS }};
+</script>
0 commit comments