mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: tool og strings
This commit is contained in:
1 parent
260d819c77
commit
e4558d978c
2 files changed
+6
-2
No files matched your search
@@ -11,7 +11,9 @@ const { tool } = Astro.props;
|
||||
const { locale } = Astro.params;
|
||||
const strings = getStrings(locale);
|
||||
const toolStrings =
|
||||
strings.website.tools[tool.id as keyof typeof strings.website.tools];
|
||||
strings.website.tools[
|
||||
(tool.stringsId ?? tool.id) as keyof typeof strings.website.tools
|
||||
];
|
||||
---
|
||||
|
||||
<title>{toolStrings.name}</title>
|
||||
|
||||
@@ -14,7 +14,9 @@ const { tool } = Astro.props;
|
||||
const { locale } = Astro.params;
|
||||
const strings = getStrings(locale);
|
||||
const toolStrings =
|
||||
strings.website.tools[tool.id as keyof typeof strings.website.tools];
|
||||
strings.website.tools[
|
||||
(tool.stringsId ?? tool.id) as keyof typeof strings.website.tools
|
||||
];
|
||||
---
|
||||
|
||||
<ToolOpenGraph tool={tool} />
|
||||
|
||||
Reference in new issue
Block a user