Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: blog pre footer related articles title #280

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/pages/blog-post.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
<TwoEggs class="hidden w-60 sm:block" />
</div>
</div>
<h4 class="mb-[-40px] mt-10 block text-foreground-secondary md:hidden">
{t('blog.pre-footer.related')}
</h4>
</div>

<!-- Related Posts -->
Expand Down
13 changes: 12 additions & 1 deletion src/lib/i18n/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,16 @@
"a11y.physics-add": "Create new physics block",
"a11y.see-post": "See post",
"a11y.see-career": "Se career",
"blog.tag-meta-description": "We design, we code, and we write about it too! Discover our blog with articles about: {{tags}}"
"blog.tag-meta-description": "We design, we code, and we write about it too! Discover our blog with articles about: {{tags}}",
"proposals.password-form.login": "Log in",
"proposals.password-form.trouble.label": "Having trouble logging in?",
"proposals.password-form.trouble.email": "shorui@significa.co",
"proposals.password-form.title": "Proposal.",
"proposals.password-form.subtitle": "Enter your password.",
"proposals.password-form.field.label": "Password",
"proposals.password-form.error": "Either this link has expired or the provided password is incorrect.",
"proposals.nav.action.long": "Reply to proposal",
"proposals.nav.action.short": "Reply",
"proposals.nav.title": "Proposal",
"blog.pre-footer.related": "Related articles"
}
13 changes: 12 additions & 1 deletion src/lib/i18n/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,18 @@ export const TranslationKeys = [
'a11y.physics-add',
'a11y.see-post',
'a11y.see-career',
'blog.tag-meta-description'
'blog.tag-meta-description',
'proposals.password-form.login',
'proposals.password-form.trouble.label',
'proposals.password-form.trouble.email',
'proposals.password-form.title',
'proposals.password-form.subtitle',
'proposals.password-form.field.label',
'proposals.password-form.error',
'proposals.nav.action.long',
'proposals.nav.action.short',
'proposals.nav.title',
'blog.pre-footer.related'
] as const;

export type TranslationKey = (typeof TranslationKeys)[number];
Expand Down