File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ defineOgImageComponent('Default', {
1212 title : () => $t (' cookie_policy.title' ),
1313 description : () => $t (' cookie_policy.welcome' , { app: ' npmx' }),
1414})
15+
16+ const buildInfo = useAppConfig ().buildInfo
17+ const { locale } = useI18n ()
1518 </script >
1619
1720<template >
@@ -21,14 +24,16 @@ defineOgImageComponent('Default', {
2124 <h1 class =" font-mono text-3xl sm:text-4xl font-medium mb-4 lowercase" >
2225 {{ $t('cookie_policy.title') }}
2326 </h1 >
24- <p class =" text-fg-muted" >
25- {{
26- $t('cookie_policy.last_updated', {
27- date: '', // Placeholder, NuxtTime handles the date
28- })
29- }}
30- <NuxtTime :datetime =" new Date('2025-07-03')" date-style =" long" />
31- </p >
27+ <i18n-t keypath =" cookie_policy.last_updated" tag =" p" scope =" global" class =" text-fg-muted" >
28+ <template #date >
29+ <NuxtTime
30+ :locale
31+ :datetime =" buildInfo.cookiePolicyDate"
32+ date-style =" long"
33+ time-style =" medium"
34+ />
35+ </template >
36+ </i18n-t >
3237 </header >
3338
3439 <div class =" prose prose-invert max-w-none text-fg-muted" >
You can’t perform that action at this time.
0 commit comments