mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 21:03:03 -05:00
feat(): use labels translations for astro components and giscus
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
---
|
||||
import type { Props } from '@astrojs/starlight/props';
|
||||
|
||||
const {lang, locale} = Astro.props;
|
||||
|
||||
const shortLang = lang.split('-')[0];
|
||||
---
|
||||
|
||||
<div class="separator"></div>
|
||||
@@ -15,7 +19,7 @@
|
||||
data-emit-metadata="0"
|
||||
data-input-position="bottom"
|
||||
data-theme="preferred_color_scheme"
|
||||
data-lang="en"
|
||||
data-lang={shortLang}
|
||||
data-loading="lazy"
|
||||
crossorigin="anonymous"
|
||||
async>
|
||||
@@ -26,4 +30,4 @@
|
||||
border-top: solid 1px var(--sl-color-hairline);
|
||||
margin: 3rem 0px;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user