started german translation of workshop
This commit is contained in:
parent
f0faf5b42e
commit
61a9b01062
11 changed files with 1574 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
// import { getLanguageFromURL } from '../../languages';
|
||||
import { getLanguageFromURL } from '../../languages';
|
||||
import { SIDEBAR } from '../../config';
|
||||
|
||||
type Props = {
|
||||
|
|
@ -10,7 +10,7 @@ const { currentPage } = Astro.props as Props;
|
|||
const { BASE_URL } = import.meta.env;
|
||||
let currentPageMatch = currentPage.slice(BASE_URL.length, currentPage.endsWith('/') ? -1 : undefined);
|
||||
|
||||
const langCode = 'en'; // getLanguageFromURL(currentPage);
|
||||
const langCode = getLanguageFromURL(currentPage) || 'en';
|
||||
const sidebar = SIDEBAR[langCode];
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue