mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 05:33:01 +00:00
Preload the translations for the current language (#16430)
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com> GitOrigin-RevId: c5500d0b7e8d0c99ed09751a35140a0b62182318
This commit is contained in:
parent
7ad5cb8f8b
commit
384633e41e
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ html(
|
|||
each subdomainDetails in settings.i18n.subdomainLang
|
||||
if !subdomainDetails.hide
|
||||
link(rel="alternate", href=subdomainDetails.url+currentUrl, hreflang=subdomainDetails.lngCode)
|
||||
|
||||
if (entrypoint !== 'marketing')
|
||||
link(rel="preload", href=buildJsPath(currentLngCode + "-json.js"), as="script", nonce=scriptNonce)
|
||||
|
||||
//- Scripts
|
||||
include _google_analytics
|
||||
|
|
Loading…
Reference in a new issue