-
\ No newline at end of file
+
diff --git a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro b/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro
index dc3cecc..876eab1 100644
--- a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro
+++ b/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro
@@ -10,11 +10,9 @@ import LallansIssue from '../../../../../components/LallansIssue.astro';
export async function getStaticPaths() {
const lallansIssueNumbers = Object.keys(getLallansIssue) as `${LallansIssueNumber}`[];
- return lallansIssueNumbers.flatMap(n => (
- localeStaticPaths.map(p => (
- { ...p, params: { ...p.params, issueNumber: n } }
- ))
- ));
+ return lallansIssueNumbers.flatMap((n) =>
+ localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, issueNumber: n } }))
+ );
}
const locale = Astro.params.locale as Locale;
@@ -23,6 +21,6 @@ const issueNumber = new Number(Astro.params.issueNumber).valueOf() as LallansIss
const issue = await getLallansIssue[issueNumber]();
---
-
+
-
\ No newline at end of file
+
diff --git a/src/pages/[locale]/furthsettins/lallans/index.astro b/src/pages/[locale]/furthsettins/lallans/index.astro
index 0c10b99..b565497 100644
--- a/src/pages/[locale]/furthsettins/lallans/index.astro
+++ b/src/pages/[locale]/furthsettins/lallans/index.astro
@@ -6,14 +6,16 @@ import tFurthsettins from '../../../../i18n/translations/pages/furthsettins';
import type Locale from '../../../../types/Locale';
import LallansIssuesGallery from '../../../../components/LallansIssuesGallery.astro';
-export async function getStaticPaths() { return localeStaticPaths; }
+export async function getStaticPaths() {
+ return localeStaticPaths;
+}
const locale = Astro.params.locale as Locale;
const t = translate(locale);
---
-
+
Lallans
-
\ No newline at end of file
+
diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro
index 5f9ab7a..8ae3a7b 100644
--- a/src/pages/[locale]/index.astro
+++ b/src/pages/[locale]/index.astro
@@ -6,15 +6,17 @@ import site from '../../i18n/translations/site';
import home from '../../i18n/translations/pages/home';
import type Locale from '../../types/Locale';
-export async function getStaticPaths() { return localeStaticPaths; }
+export async function getStaticPaths() {
+ return localeStaticPaths;
+}
const locale = Astro.params.locale as Locale;
const t = translate(locale);
---
-
+
-
{ t(site, 'title') }
+
{t(site, { key: 'title' })}
Tap-level heidin
Seicont-level heidin
Third-level heidin
diff --git a/src/types/TranslationsDictionary.d.ts b/src/types/TranslationsDictionary.d.ts
index 5a8a251..d62947c 100644
--- a/src/types/TranslationsDictionary.d.ts
+++ b/src/types/TranslationsDictionary.d.ts
@@ -1,6 +1,12 @@
import type { defaultLocale } from '../i18n/locales';
import type Locale from './Locale';
-type TranslationsDictionary = {
- [key in Keys]: { [key in Locale]?: string } & { [key in typeof defaultLocale]: string };
+export type Translation = (params: { [key in keyof Params]: string }) => string;
+
+export type TranslationsDictionary = {
+ [key in keyof Raw]: {
+ [locale in Locale]?: Translation[0]>;
+ } & {
+ [locale in typeof defaultLocale]: Translation[0]>;
+ };
};
--
cgit v1.2.3