fix: expose i18n instance

This commit is contained in:
Shusui MOYATANI
2024-01-22 12:38:53 +09:00
parent f9aab378bd
commit 2423f742e2
35 changed files with 246 additions and 247 deletions

View File

@@ -109,7 +109,7 @@ const ClickToShow: Component<ClickToShowProps> = (props) => {
class="flex flex-col items-center rounded bg-bg-tertiary p-3 text-xs text-fg-secondary hover:shadow"
onClick={() => setHidden(false)}
>
{i18n()('post.showPreview')}
{i18n.t('post.showPreview')}
</button>
<SafeLink class="text-link underline" href={props.url} />
</div>