mirror of
https://github.com/ProjectSegfault/website.git
synced 2025-05-31 14:12:04 +05:30
add titles to pages
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
<script lang="ts">
|
||||
import SvelteSeo from "svelte-seo";
|
||||
import Banner from "$lib/images/ProjectSegfault_Desktop_16-9.png";
|
||||
import * as global from "../i18n/_global.json";
|
||||
import { t } from '$lib/translations';
|
||||
</script>
|
||||
|
||||
<SvelteSeo
|
||||
openGraph={{
|
||||
title: global.NAME,
|
||||
description: $t('common.INDEX_DESCRIPTION'),
|
||||
type: "website",
|
||||
images: [
|
||||
{
|
||||
url: Banner,
|
||||
width: 850,
|
||||
height: 650,
|
||||
alt: "Image"
|
||||
}
|
||||
]
|
||||
}}
|
||||
/>
|
||||
|
||||
<svelte:head>
|
||||
<title>{global.NAME}</title>
|
||||
</svelte:head>
|
||||
|
||||
<div class="mdsvex_content">
|
||||
<slot />
|
||||
</div>
|
||||
@@ -4,13 +4,13 @@
|
||||
import IconGitHub from "~icons/simple-icons/github";
|
||||
import IconSignal from "~icons/fa6-solid/signal";
|
||||
import * as global from "../i18n/_global.json";
|
||||
import { t } from '$lib/translations';
|
||||
import { t } from "$lib/translations";
|
||||
</script>
|
||||
|
||||
<footer>
|
||||
<hr />
|
||||
<div class="content">
|
||||
<span>{$t('common.FOOTER_COPYRIGHT')}</span>
|
||||
<span>{$t("common.FOOTER_COPYRIGHT")}</span>
|
||||
|
||||
<div class="links">
|
||||
<a href={global.MATRIX_INVITE}>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import * as global from "../i18n/_global.json";
|
||||
import { t } from '$lib/translations';
|
||||
import { t } from "$lib/translations";
|
||||
</script>
|
||||
|
||||
<nav>
|
||||
@@ -16,12 +16,12 @@
|
||||
</a>
|
||||
|
||||
<div class="links">
|
||||
<a href={global.INSTANCES}>{$t('common.NAVBAR_INSTANCES')}</a>
|
||||
<a href={global.INSTANCES}>{$t("common.NAVBAR_INSTANCES")}</a>
|
||||
<a href="/minecraft">{global.MINECRAFT}</a>
|
||||
<a href="/donate">{$t('common.NAVBAR_DONATE')}</a>
|
||||
<a href={global.FAQ_URL}>{$t('common.NAVBAR_FAQ')}</a>
|
||||
<a href="/contact">{$t('common.NAVBAR_CONTACT')}</a>
|
||||
<a href={global.BLOG_URL}>{$t('common.NAVBAR_BLOG')}</a>
|
||||
<a href="/donate">{$t("common.NAVBAR_DONATE")}</a>
|
||||
<a href={global.FAQ_URL}>{$t("common.NAVBAR_FAQ")}</a>
|
||||
<a href="/contact">{$t("common.NAVBAR_CONTACT")}</a>
|
||||
<a href={global.BLOG_URL}>{$t("common.NAVBAR_BLOG")}</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
@@ -1,23 +1,21 @@
|
||||
import i18n from 'sveltekit-i18n';
|
||||
import i18n from "sveltekit-i18n";
|
||||
|
||||
/** @type {import('sveltekit-i18n').Config} */
|
||||
const config = ({
|
||||
loaders: [
|
||||
{
|
||||
locale: 'en',
|
||||
key: 'common',
|
||||
loader: async () => (
|
||||
await import('../i18n/common.json')
|
||||
).default,
|
||||
},
|
||||
{
|
||||
locale: 'nb',
|
||||
key: 'common',
|
||||
loader: async () => (
|
||||
await import('../i18n/nb.json')
|
||||
).default,
|
||||
}
|
||||
],
|
||||
});
|
||||
const config = {
|
||||
loaders: [
|
||||
{
|
||||
locale: "en",
|
||||
key: "common",
|
||||
loader: async () => (await import("../i18n/common.json")).default
|
||||
},
|
||||
{
|
||||
locale: "nb",
|
||||
key: "common",
|
||||
loader: async () => (await import("../i18n/nb.json")).default
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export const { t, locale, locales, loading, loadTranslations } = new i18n(config);
|
||||
export const { t, locale, locales, loading, loadTranslations } = new i18n(
|
||||
config
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user