Merge pull request #6753 from seotts/annual-report-intl-file

Make /annual-report use localization file of 2020 report
This commit is contained in:
Sarah Otts 2022-04-29 17:17:55 -04:00 committed by GitHub
commit 0d07cf5c44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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"
}, },
{ {

View file

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