Add optional “intlName” route attribute for annual report

This commit is contained in:
seotts 2022-04-28 14:31:07 -04:00
parent 5fdec8c1fa
commit c30f99c0da
2 changed files with 2 additions and 1 deletions

View file

@ -12,6 +12,7 @@
"routeAlias": "/annual-report/?$",
"view": "annual-report/2020/annual-report",
"title": "Annual Report 2020",
"intlName": "annual-report-2020",
"viewportWidth": "device-width"
},
{

View file

@ -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 -->