Skip to content

Commit 9c0a71f

Browse files
committed
fix(banner): missing translation
1 parent fdf2bd3 commit 9c0a71f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.vitepress/theme/components/Banner.vue

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<script setup>
22
/**
3-
* Adding a new banner:
4-
* 1. uncomment the banner slot in ../index.ts
5-
* 2. uncomment and update BANNER_ID in ../../inlined-scripts/restorePreferences.ts
6-
* 3. update --vt-banner-height if necessary
3+
* Añadir un nuevo banner:
4+
* 1. Descomenta el slot de banner en ../index.ts
5+
* 2. Descomenta y actualiza BANNER_ID en ../../inlined-scripts/restorePreferences.ts
6+
* 3. Actualiza --vt-banner-height si es necesario
77
*/
88
import { ref } from 'vue'
99
import { VTIconPlus } from '@vue/theme'
1010
1111
const open = ref(true)
1212
1313
/**
14-
* Call this if the banner is dismissible
14+
* Invoca a esto si el banner es descartable
1515
*/
16+
1617
function dismiss() {
1718
open.value = false
1819
document.documentElement.classList.add('banner-dismissed')
@@ -99,14 +100,14 @@ function dismiss() {
99100
</svg>
100101
<div class="banner__middle">
101102
<div class="title gradient_text">
102-
Haven't migrated to Vue 3 yet?
103+
¿Aún no has migrado a Vue 3?
103104
</div>
104105
<div class="separator"></div>
105106
<div class="subtitle white_text">
106-
Explore Never-Ending Support for Vue 2 by HeroDevs
107+
Explora el soporte interminable para Vue 2 por HeroDevs
107108
</div>
108109
<div class="cta_button_container">
109-
<button class="cta_button">Learn more</button>
110+
<button class="cta_button">Más información</button>
110111
</div>
111112
</div>
112113
<svg
@@ -402,4 +403,4 @@ button#dismiss_button {
402403
display: block;
403404
}
404405
}
405-
</style>
406+
</style>

0 commit comments

Comments
 (0)