2022-09-09 11:53:35 +00:00
|
|
|
---
|
2022-11-13 09:25:31 +00:00
|
|
|
import { setLocale } from './stores/ui'
|
2022-11-13 03:40:37 +00:00
|
|
|
import './styles/app.scss'
|
|
|
|
import { t } from './utils/intl'
|
|
|
|
|
|
|
|
// Setting locale for prerendered content here
|
2022-09-09 11:53:35 +00:00
|
|
|
|
2022-09-24 10:34:57 +00:00
|
|
|
const lang = Astro.url.searchParams.get('lang') || 'ru'
|
2022-11-14 19:01:03 +00:00
|
|
|
console.log('[main.astro] astro runtime locale is', lang)
|
2022-09-24 10:34:57 +00:00
|
|
|
setLocale(lang)
|
|
|
|
|
2022-09-09 11:53:35 +00:00
|
|
|
---
|
2022-09-22 09:37:49 +00:00
|
|
|
<html lang={lang || 'ru'}>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width" />
|
|
|
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
|
|
<title>{t('Discours')}</title>
|
2022-11-14 08:03:48 +00:00
|
|
|
<script async
|
|
|
|
src="https://ackee.discours.io/increment.js"
|
|
|
|
data-ackee-server="https://ackee.discours.io"
|
|
|
|
data-ackee-domain-id="1004abeb-89b2-4e85-ad97-74f8d2c8ed2d"
|
|
|
|
></script>
|
2022-09-22 09:37:49 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<slot />
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
2022-09-23 18:27:05 +00:00
|
|
|
|