Skip to content

Commit

Permalink
Add meta translations to security legal page
Browse files Browse the repository at this point in the history
  • Loading branch information
brawaru committed Nov 27, 2022
1 parent 2f8507a commit bb11a14
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 26 deletions.
6 changes: 6 additions & 0 deletions i18n/en-US/index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,12 @@ meta.description = """\
The Terms and Conditions of Modrinth, an open source modding platform focused \
on Minecraft."""

[legal.security]
title = "Security Notice"
meta.description = """\
The Security Notice of Modrinth, an open source modding platform focused on \
Minecraft."""

[legal.common]
warning = """\
<sr-only>Warning:</sr-only>
Expand Down
52 changes: 27 additions & 25 deletions pages/legal/security.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,31 +61,33 @@
<script>
export default {
auth: false,
head: {
title: 'Security Notice - Modrinth',
meta: [
{
hid: 'description',
name: 'description',
content:
'The Security Notice of Modrinth, an open source modding platform focused on Minecraft.',
},
{
hid: 'apple-mobile-web-app-title',
name: 'apple-mobile-web-app-title',
content: 'Security Notice',
},
{
hid: 'og:title',
name: 'og:title',
content: 'Security Notice',
},
{
hid: 'og:url',
name: 'og:url',
content: `https://modrinth.com/legal/security`,
},
],
head() {
const title = this.$t('legal.security.title')
return {
title: this.$t('generic.meta.page-title', { page: title }),
meta: [
{
hid: 'description',
name: 'description',
content: this.$t('legal.security.meta.description'),
},
{
hid: 'apple-mobile-web-app-title',
name: 'apple-mobile-web-app-title',
content: title,
},
{
hid: 'og:title',
name: 'og:title',
content: title,
},
{
hid: 'og:url',
name: 'og:url',
content: `https://modrinth.com/legal/security`,
},
],
}
},
}
</script>
Expand Down
6 changes: 5 additions & 1 deletion types/i18n-messages.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ declare module '~/modules/i18n/templates/i18n.types' {

'footer.section.legal.link.rules': never

'footer.section.legal.link.license': never
'footer.section.legal.link.security': never

'footer.section.resources.title': never

Expand Down Expand Up @@ -1119,6 +1119,10 @@ declare module '~/modules/i18n/templates/i18n.types' {

'legal.terms.meta.description': never

'legal.security.title': never

'legal.security.meta.description': never

'legal.common.warning': {
'sr-only': RichArgument
}
Expand Down

0 comments on commit bb11a14

Please sign in to comment.