feat: translation keys for SB card

zio/stable
patak 2023-01-17 11:54:25 +01:00
parent 3050350f25
commit 8d3be0f3cf
2 changed files with 17 additions and 10 deletions

View File

@ -58,25 +58,25 @@ const vnodeCode = $computed(() => {
</span> </span>
</div> </div>
<div <div
flex flex-col flex
justify-between
display-block of-hidden display-block of-hidden
bg-card bg-card
w-full w-full
justify-center
p-3 p-3
pb-4 pb-4
> >
<div flex justify-between> <div flex flex-col>
<p flex gap-1> <p flex gap-1>
<span>Code Snippet from</span><span>{{ meta.file }}</span><span text-secondary>{{ `- Lines ${meta.lines}` }}</span> <span>{{ $t('custom_cards.stackblitz.snippet_from', [meta.file]) }}</span><span text-secondary>{{ `- ${$t('custom_cards.stackblitz.lines', [meta.lines])}` }}</span>
</p> </p>
<NuxtLink external target="_blank" btn-solid py-0 px-2 :to="card.url"> <div flex font-bold gap-2>
Open <span text-primary>{{ meta.project }}</span><span flex text-secondary><span flex items-center><svg h-5 width="22.27" height="32" viewBox="0 0 256 368"><path fill="currentColor" d="M109.586 217.013H0L200.34 0l-53.926 150.233H256L55.645 367.246l53.927-150.233z" /></svg></span><span>StackBlitz</span></span>
</NuxtLink> </div>
</div>
<div flex font-bold gap-2>
<span text-primary>{{ meta.project }}</span><span flex text-secondary><span flex items-center><svg h-5 width="22.27" height="32" viewBox="0 0 256 368"><path fill="currentColor" d="M109.586 217.013H0L200.34 0l-53.926 150.233H256L55.645 367.246l53.927-150.233z" /></svg></span><span>StackBlitz</span></span>
</div> </div>
<NuxtLink external target="_blank" btn-solid pt-0 pb-1 px-2 h-fit :to="card.url">
{{ $t('custom_cards.stackblitz.open') }}
</NuxtLink>
</div> </div>
</div> </div>
<StatusPreviewCardNormal v-else :card="card" :small-picture-only="smallPictureOnly" :root="root" /> <StatusPreviewCardNormal v-else :card="card" :small-picture-only="smallPictureOnly" :root="root" />

View File

@ -138,6 +138,13 @@
"conversation": { "conversation": {
"with": "with" "with": "with"
}, },
"custom_cards": {
"stackblitz": {
"lines": "Lines {0}",
"open": "Open",
"snippet_from": "Snippet from {0}"
}
},
"error": { "error": {
"account_not_found": "Account {0} not found", "account_not_found": "Account {0} not found",
"explore-list-empty": "Nothing is trending right now. Check back later!", "explore-list-empty": "Nothing is trending right now. Check back later!",