mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-19 20:03:51 +01:00
fix strings
This commit is contained in:
1 file changed
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
import locales from "@blitzkit/i18n/locales.json";
|
import locales from "@blitzkit/i18n/locales.json";
|
||||||
import { getStrings } from "../core/i18n/getStrings";
|
import { api } from "../api/dynamic";
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
path: string;
|
path: string;
|
||||||
@@ -9,7 +9,7 @@ export interface Props {
|
|||||||
|
|
||||||
const { path, locale } = Astro.props;
|
const { path, locale } = Astro.props;
|
||||||
|
|
||||||
const strings = getStrings(locale);
|
const strings = await api.strings(locale);
|
||||||
const resolvedPath = `/${locale === locales.default ? "" : `${locale}/`}${path}`;
|
const resolvedPath = `/${locale === locales.default ? "" : `${locale}/`}${path}`;
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user