mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-03 12:27:30 -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/?$",
|
||||
"view": "annual-report/2020/annual-report",
|
||||
"title": "Annual Report 2020",
|
||||
"intlName": "annual-report-2020",
|
||||
"viewportWidth": "device-width"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
<script src="<%= htmlWebpackPlugin.files.chunks.common.entry %>"></script>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<!-- Translate title element -->
|
||||
|
|
Loading…
Reference in a new issue