mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web: add dynamic lang html tag
This commit is contained in:
parent
ad3703ab73
commit
578150e40e
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
import settings from "$lib/state/settings";
|
||||
import { device, app } from "$lib/device";
|
||||
import { locale } from "$lib/i18n/translations";
|
||||
import currentTheme, { statusBarColors } from "$lib/state/theme";
|
||||
|
||||
import Sidebar from "$components/sidebar/Sidebar.svelte";
|
||||
|
@ -24,7 +25,7 @@
|
|||
{/if}
|
||||
</svelte:head>
|
||||
|
||||
<div style="display: contents" data-theme={$currentTheme}>
|
||||
<div style="display: contents" data-theme={$currentTheme} lang="{$locale}">
|
||||
<div
|
||||
id="cobalt"
|
||||
data-iphone={device.is.iPhone}
|
||||
|
|
Loading…
Reference in a new issue