A
Alokaibvlint

translating components

I cannot find a way to translate the SfAddToCart button's label. How can I do that?
S
skirianov379d ago
Hey @bvlint are you using SFUI 1 or 2? All translation is happening using i18n module
SB
Sam Berry379d ago
GitHub
prestashop/Product.vue at a0be4c55ecac0b0617f171b3c391b7457c4cce06 ...
Convert your traditional PrestaShop website into a fast, mobile friendly and modern website. - prestashop/Product.vue at a0be4c55ecac0b0617f171b3c391b7457c4cce06 · vuestorefront-community/prestashop
B
bvlint379d ago
I am doing every translation in that module but I can't find "Add to cart" anywhere sadly I am using SFUI2 I think, its a year old project that I abandoned for half a year
S
skirianov379d ago
Yep, you need to import t from the i18n package and use it inside the template Nope, that would be SFUI1 for sure 🙂 Do you have a lang directory with the translation keys?
B
bvlint379d ago
yep, and made a new one which im using "hu.js" thanks that worked! ❤️
SB
Sam Berry379d ago
welcome ❤️
B
bvlint379d ago
can I mark this post solved somehow or should I just leave it be?
S
skirianov379d ago
I will mark it thanks! I think when you click right click on the message, you can click Apps -> Mark as solution also edit tag to Solved 🙂
Want results from more Discord servers?
Add your server
More Posts
How is checkout components rendering?In code i find this array of steps in checkout. But how i can, for example, change component for shiUnable to make API call on serverhttps://auction-dev.ycspl.in/weeklyauction while accessing this endpoint my network request is made issue with API callWhen I do yarn start it adds undefined to my request url but when I do yarn dev it works fine. Can ygetting this error while trying to deployjenkins@ip-172-31-24-212:~/workspace/auction-frontend$ npm install npm WARN read-shrinkwrap This verUnable to access cookies in composablescontext.$bagisto.config.app.$cookies.set('vsf-bagCust-token', loginResult.data.api_access_token); myVSF UI 2 with ecommerce-integration-boilerplateHi, I hope this isn't a silly question :). Is it possible to use the new UI with the boilerplate fouWhat version of Node?Noob question. I was trying to create a storefront with spree and got the following error: error @vuHow to add custom function to a composableimport { Context, useFacetFactory, FacetSearchResult } from '@vue-storefront/core'; import typGet product details and Static block from magento 2 backend to VueStoreFront.Hi, I have a doubt. I need to call static block from magento to vuestorefront homepage someone pleasPossible Memory leak in vuestorefront-apiHi, we are using vuestorefront 1, problem we facing at the moment is that with time the api server iHow to detect if a page has an error inside the layoutInside the default layout I need to detect if there is an error page displayed (like for example a 4Contribution via a specific issueHello. I opened this **issue** (https://github.com/vuestorefront/vue-storefront/issues/6891). I workUnable to change the color of the SFheaderunable to change the background-color of Sf header can someone please helpVSF Redis cache - dynamic parts will be disappeared after a whileHi everybody, we have implemented redis cache with VSF project (SSR Cache), but we faced an issue,Can't we use REST Apis with Vue storefrontIs it necessary to use GraphQl in vuestorefront?Is Bagisto integration with Vue Storefront Deprecated?Please explainWeird url parametersHello 🙂 My Product Id seems whack or not VSF friendly. The are formatted as rest style urls: `"gidSSR Cache - default invalidation handlerAs I saw the previous channel archived, so here we can continue discussion about cache.. @7s @TautvVue Storefront Discord revampDear community! We would like to carry out a complete revamp of our Discord channels and one of th