Skip to content

Commit

Permalink
Get the current year for copyright claim (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooglie authored Jun 30, 2022
1 parent 283b83e commit e156ae8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web/languages/en-US/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"Community Guidelines": "Community Guidelines",
"Privacy Policy": "Privacy Policy",
"Terms & Conditions": "Terms & Conditions",
"copyright": "©2021 Algorand"
"copyright": "© {{year}} Algorand"
},
"payment": {
"Payment Methods": "Payment Methods",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/languages/fr-FR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"Community Guidelines": "FR Community Guidelines",
"Privacy Policy": "FR Privacy Policy",
"Terms & Conditions": "FR Terms & Conditions",
"copyright": "FR ©2021 Algorand"
"copyright": "FR © {{year}} Algorand"
},
"payment": {
"Payment Methods": "FR Payment Methods",
Expand Down
5 changes: 4 additions & 1 deletion apps/web/src/utils/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ export const getLegalNavItems = (t: Translate) => [
href: urls.termsAndConditions,
label: t('common:nav.legal.Terms & Conditions'),
},
{ href: '', label: t('common:nav.legal.copyright') },
{
href: '',
label: t('common:nav.legal.copyright', { year: new Date().getFullYear() }),
},
]

0 comments on commit e156ae8

Please sign in to comment.