From 503c7ed39d11fedfba0ecdb5aee6185d0b9d26fe Mon Sep 17 00:00:00 2001 From: Shinsina Date: Thu, 24 Oct 2024 11:00:55 -0500 Subject: [PATCH 1/4] Hoist Vue translations to base-cms-leaders-program, update import --- .../src/utils}/i18n-vue.js | 0 .../src/utils/translations-vue.js | 20 +++++++++++++++++++ .../browser/company-website-link.vue | 2 +- .../marko-web-leaders/translations-vue.js | 8 -------- 4 files changed, 21 insertions(+), 9 deletions(-) rename packages/{marko-web-leaders => leaders-program/src/utils}/i18n-vue.js (100%) create mode 100644 packages/leaders-program/src/utils/translations-vue.js delete mode 100644 packages/marko-web-leaders/translations-vue.js 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 @@ 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 @@ From d0052781c39410a24ace5f8d0b80de12892c5389 Mon Sep 17 00:00:00 2001 From: Shinsina Date: Thu, 24 Oct 2024 11:32:16 -0500 Subject: [PATCH 4/4] Pass lang through to company-details and view more products --- packages/leaders-program/src/components/card/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/leaders-program/src/components/card/index.vue b/packages/leaders-program/src/components/card/index.vue index 56af85a24..b753ff82d 100644 --- a/packages/leaders-program/src/components/card/index.vue +++ b/packages/leaders-program/src/components/card/index.vue @@ -7,6 +7,7 @@ :logo-src="logo.src" :profile-href="profileHref" :company-href="company.website" + :lang="lang" @profile-click="handleProfileClick" @website-click="handleWebsiteClick" /> @@ -39,6 +40,7 @@ label="products" :href="productsHref" target="_blank" + :lang="lang" @click="handleAllProductsClick" />