From 8d3be0f3cfe3d14f1c33dc6eb6ca4a729e0e4f90 Mon Sep 17 00:00:00 2001 From: patak Date: Tue, 17 Jan 2023 11:54:25 +0100 Subject: [PATCH] feat: translation keys for SB card --- components/status/StatusPreviewStackBlitz.vue | 20 +++++++++---------- locales/en-US.json | 7 +++++++ 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/components/status/StatusPreviewStackBlitz.vue b/components/status/StatusPreviewStackBlitz.vue index e26c0aba..c23039bb 100644 --- a/components/status/StatusPreviewStackBlitz.vue +++ b/components/status/StatusPreviewStackBlitz.vue @@ -58,25 +58,25 @@ const vnodeCode = $computed(() => {
-
+

- Code Snippet from{{ meta.file }}{{ `- Lines ${meta.lines}` }} + {{ $t('custom_cards.stackblitz.snippet_from', [meta.file]) }}{{ `- ${$t('custom_cards.stackblitz.lines', [meta.lines])}` }}

- - Open - -
-
- {{ meta.project }}StackBlitz +
+ {{ meta.project }}StackBlitz +
+ + {{ $t('custom_cards.stackblitz.open') }} +
diff --git a/locales/en-US.json b/locales/en-US.json index daa3ecbc..4c493f6c 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -138,6 +138,13 @@ "conversation": { "with": "with" }, + "custom_cards": { + "stackblitz": { + "lines": "Lines {0}", + "open": "Open", + "snippet_from": "Snippet from {0}" + } + }, "error": { "account_not_found": "Account {0} not found", "explore-list-empty": "Nothing is trending right now. Check back later!",