diff --git a/packages/leaders-program/src/components/card/blocks/company-details.vue b/packages/leaders-program/src/components/card/blocks/company-details.vue index 75bf27f9e..3e495d55f 100644 --- a/packages/leaders-program/src/components/card/blocks/company-details.vue +++ b/packages/leaders-program/src/components/card/blocks/company-details.vue @@ -24,20 +24,21 @@ type="accent" @click="emitWebsiteClick" > - Visit Site + {{ translate("visitSiteLabel") }} - View Profile + {{ translate("viewProfileLabel") }} diff --git a/packages/leaders-program/src/components/card/blocks/view-more.vue b/packages/leaders-program/src/components/card/blocks/view-more.vue index 735a518c2..f6a242b95 100644 --- a/packages/leaders-program/src/components/card/blocks/view-more.vue +++ b/packages/leaders-program/src/components/card/blocks/view-more.vue @@ -5,6 +5,7 @@ diff --git a/packages/leaders-program/src/components/containers/section-wrapper.vue b/packages/leaders-program/src/components/containers/section-wrapper.vue index 43d5efd86..8c8b991f6 100644 --- a/packages/leaders-program/src/components/containers/section-wrapper.vue +++ b/packages/leaders-program/src/components/containers/section-wrapper.vue @@ -30,6 +30,7 @@ :feature-youtube-videos="featureYoutubeVideos" :collapse-empty-categories="collapseEmptyCategories" :icon-style="iconStyle" + :lang="lang" @action="emitAction" /> @@ -55,6 +56,7 @@ :promotion-limit="promotionLimit" :video-limit="videoLimit" :icon-style="iconStyle" + :lang="lang" @action="emitAction" /> @@ -127,6 +129,10 @@ export default { type: Boolean, default: false, }, + lang: { + type: String, + default: 'en', + }, }, computed: { diff --git a/packages/leaders-program/src/components/containers/section.vue b/packages/leaders-program/src/components/containers/section.vue index f12f9c7e0..8c18b1e8e 100644 --- a/packages/leaders-program/src/components/containers/section.vue +++ b/packages/leaders-program/src/components/containers/section.vue @@ -38,6 +38,7 @@ :is-active="isActive" :featured-product-label="featuredProductLabel" :feature-youtube-videos="featureYoutubeVideos" + :lang="lang" @action="emitAction" /> @@ -128,6 +129,10 @@ export default { default: 'plus-minus', validator: (v) => ['plus-minus', 'chevron'].includes(v), }, + lang: { + type: String, + default: 'en', + }, }, data: () => ({ diff --git a/packages/leaders-program/src/components/leaders.vue b/packages/leaders-program/src/components/leaders.vue index b4788a2f3..759190cc4 100644 --- a/packages/leaders-program/src/components/leaders.vue +++ b/packages/leaders-program/src/components/leaders.vue @@ -39,6 +39,7 @@ :feature-youtube-videos="featureYoutubeVideos" :collapse-empty-categories="collapseEmptyCategories" :icon-style="iconStyle" + :lang="lang" @action="emitAction" /> @@ -203,6 +204,10 @@ export default { default: 'plus-minus', validator: (v) => ['plus-minus', 'chevron'].includes(v), }, + lang: { + type: String, + default: 'en', + }, }, data: () => ({ diff --git a/packages/marko-web-leaders/i18n-vue.js b/packages/leaders-program/src/utils/i18n-vue.js similarity index 100% rename from packages/marko-web-leaders/i18n-vue.js rename to packages/leaders-program/src/utils/i18n-vue.js diff --git a/packages/leaders-program/src/utils/translations-vue.js b/packages/leaders-program/src/utils/translations-vue.js new file mode 100644 index 000000000..c7d9d40eb --- /dev/null +++ b/packages/leaders-program/src/utils/translations-vue.js @@ -0,0 +1,20 @@ +export default { + en: { + visitSiteLabel: 'Visit Site', + viewProfileLabel: 'View Profile', + featuredVideosLabel: 'Featured Videos', + featuredProductsLabel: 'Featured Products', + 'view more': 'View more', + videos: 'videos', + products: 'products', + }, + es: { + visitSiteLabel: 'Visite el sitio web', + viewProfileLabel: 'Vea el perfil', + featuredVideosLabel: 'Videos destacados', + featuredProductsLabel: 'Productos destacados', + 'view more': 'Vea más', + videos: 'videos', + products: 'productos', + }, +}; diff --git a/packages/marko-web-leaders/browser/company-website-link.vue b/packages/marko-web-leaders/browser/company-website-link.vue index 3d9fd34db..8e7bde511 100644 --- a/packages/marko-web-leaders/browser/company-website-link.vue +++ b/packages/marko-web-leaders/browser/company-website-link.vue @@ -12,7 +12,7 @@