i18n(common): add i18n translation

This commit is contained in:
orenzhang
2025-03-06 20:16:34 +08:00
parent 1173459eee
commit 92fb1109b6
56 changed files with 315 additions and 16 deletions
+9 -4
View File
@@ -73,10 +73,15 @@
<div class="text-2xl font-medium capitalize">{channel.name}</div>
<div class=" text-gray-500">
This channel was created on {dayjs(channel.created_at / 1000000).format(
'MMMM D, YYYY'
)}. This is the very beginning of the {channel.name}
channel.
{
$i18n.t(
'This channel was created on {{createdAt}}. This is the very beginning of the {{channelName}} channel.',
{
createdAt: dayjs(channel.created_at / 1000000).format('MMMM D, YYYY'),
channelName: channel.name,
}
)
}
</div>
</div>
{:else}