fix: tool og strings

This commit is contained in:
tresabhi committed 2025-01-10 20:30:08 -06:00
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} />