adds french & fixes translation issues
This commit is contained in:
@@ -13,7 +13,7 @@ export async function PUT(event: RequestEvent) {
|
||||
}
|
||||
let trail: Trail;
|
||||
try {
|
||||
trail = gpx2trail(gpx);
|
||||
trail = await gpx2trail(gpx);
|
||||
} catch (e: any) {
|
||||
throw new ClientResponseError({ status: 400, response: { message: "Invalid GPX file" } })
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
const languages: SelectItem[] = [
|
||||
{ text: $_("german"), value: "de" },
|
||||
{ text: $_("english"), value: "en" },
|
||||
{ text: $_("french"), value: "fr" },
|
||||
{ text: $_("dutch"), value: "nl" },
|
||||
{ text: $_("polish"), value: "pl" },
|
||||
{ text: $_("portuguese"), value: "pt" },
|
||||
@@ -94,7 +95,7 @@
|
||||
}
|
||||
|
||||
async function handleLanguageSelection(
|
||||
value: "en" | "de" | "nl" | "pl" | "pt",
|
||||
value: "en" | "de" | "fr" | "nl" | "pl" | "pt",
|
||||
) {
|
||||
locale.set(value);
|
||||
await users_update({
|
||||
|
||||
Reference in New Issue
Block a user