mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-12 00:31:11 -05:00
Add optional “intlName” route attribute for annual report
This commit is contained in:
parent
5fdec8c1fa
commit
c30f99c0da
2 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
||||||
"routeAlias": "/annual-report/?$",
|
"routeAlias": "/annual-report/?$",
|
||||||
"view": "annual-report/2020/annual-report",
|
"view": "annual-report/2020/annual-report",
|
||||||
"title": "Annual Report 2020",
|
"title": "Annual Report 2020",
|
||||||
|
"intlName": "annual-report-2020",
|
||||||
"viewportWidth": "device-width"
|
"viewportWidth": "device-width"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
<script src="<%= htmlWebpackPlugin.files.chunks.common.entry %>"></script>
|
<script src="<%= htmlWebpackPlugin.files.chunks.common.entry %>"></script>
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<script src="/js/<%= htmlWebpackPlugin.options.route.name %>.intl.js"></script>
|
<script src="/js/<%= htmlWebpackPlugin.options.route.intlName || htmlWebpackPlugin.options.route.name %>.intl.js"></script>
|
||||||
<script src="<%= htmlWebpackPlugin.files.chunks[htmlWebpackPlugin.options.route.name].entry %>"></script>
|
<script src="<%= htmlWebpackPlugin.files.chunks[htmlWebpackPlugin.options.route.name].entry %>"></script>
|
||||||
|
|
||||||
<!-- Translate title element -->
|
<!-- Translate title element -->
|
||||||
|
|
Loading…
Reference in a new issue