mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-27 02:27:18 +00:00
docs progress
This commit is contained in:
1 parent
d46cb4c2e5
commit
7264445926
40 files changed
+470
-68
No files matched your search
@@ -7,6 +7,7 @@ import { map } from "./stores";
|
||||
import { base } from "$app/paths";
|
||||
import { browser } from "$app/environment";
|
||||
import { languages } from "$lib/languages";
|
||||
import { locale } from "svelte-i18n";
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
@@ -101,6 +102,13 @@ export function getURLForLanguage(lang: string | null | undefined, path?: string
|
||||
languageInPath = 'en';
|
||||
}
|
||||
|
||||
if (lang === null || lang === undefined) {
|
||||
lang = get(locale);
|
||||
if (lang === null || lang === undefined) {
|
||||
lang = 'en';
|
||||
}
|
||||
}
|
||||
|
||||
if (languageInPath === 'en') {
|
||||
if (lang === 'en') {
|
||||
return `${base}${newPath}`;
|
||||
|
||||
Reference in new issue
Block a user