Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: added missing translations #6727

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/nuxt-theme-module/theme/components/AppFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</SfListItem>
</SfList>
</SfFooterColumn>
<SfFooterColumn title="Social">
<SfFooterColumn :title="$t('Social')">
<div class="footer__socials">
<SfImage class="footer__social-image" v-for="item in social" :key="item" :src="addBasePath('/icons/'+item+'.svg')" :alt="item" width="32" height="32" />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<SfBottomNavigation class="navigation-bottom smartphone-only">
<SfBottomNavigationItem
:class="route.path == '/' ? 'sf-bottom-navigation__item--active' : ''"
icon="home" size="20px" label="Home"
icon="home" size="20px" :label="$t('Home')"
@click="handleHomeClick"
/>
<SfBottomNavigationItem icon="menu" size="20px" label="Menu" @click="toggleMobileMenu"/>
<SfBottomNavigationItem icon="heart" size="20px" label="Wishlist" @click="toggleWishlistSidebar"/>
<SfBottomNavigationItem icon="profile" size="20px" label="Account" @click="handleAccountClick"/>
<!-- TODO: add logic for label - if on Home then Basket, if on PDC then AddToCart etc. -->
<SfBottomNavigationItem
label="Basket"
:label="$t('Basket')"
icon="add_to_cart"
@click="toggleCartSidebar"
>
Expand Down
13 changes: 6 additions & 7 deletions packages/nuxt-theme-module/theme/components/CartSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<SfSidebar
v-e2e="'sidebar-cart'"
:visible="isCartSidebarOpen"
title="My Cart"
:title="$t('My Cart')"
class="sf-sidebar--right"
@close="toggleCartSidebar"
>
<template #content-top>
<SfProperty
v-if="totalItems"
class="sf-property--large cart-summary desktop-only"
name="Total items"
:name="$t('Total items')"
:value="totalItems"
/>
</template>
Expand Down Expand Up @@ -60,16 +60,15 @@
<div v-else key="empty-cart" class="empty-cart">
<div class="empty-cart__banner">
<SfImage
alt="Empty bag"
:alt="$t('Empty bag')"
class="empty-cart__image"
:src="addBasePath('/icons/empty-cart.svg')"
/>
<SfHeading
title="Your cart is empty"
:title="$t('Your cart is empty')"
:level="2"
class="empty-cart__heading"
description="Looks like you haven’t added any items to the bag yet. Start
shopping to fill it in."
:description="$t('Empty')"
/>
</div>
</div>
Expand All @@ -78,7 +77,7 @@
<transition name="sf-fade">
<div v-if="totalItems">
<SfProperty
name="Subtotal price"
:name="$t('Subtotal price')"
class="sf-property--full-width sf-property--large my-cart__total-price"
>
<template #value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div id="filters">
<SfSidebar
:visible="isFilterSidebarOpen"
title="Filters"
:title="$t('Filters')"
class="sidebar-filters"
@close="toggleFilterSidebar"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</SfButton>
<SfBottomModal
:is-open="isLangModalOpen"
title="Choose language"
:title="$t('Choose language')"
@click:close="isLangModalOpen = !isLangModalOpen"
>
<SfList>
Expand Down
16 changes: 8 additions & 8 deletions packages/nuxt-theme-module/theme/components/LoginModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
:valid="!errors[0]"
:errorMessage="errors[0]"
name="email"
label="Your email"
:label="$t('Your email')"
class="form__element"
/>
</ValidationProvider>
Expand All @@ -35,7 +35,7 @@
:valid="!errors[0]"
:errorMessage="errors[0]"
name="password"
label="Password"
:label="$t('Password')"
type="password"
class="form__element"
/>
Expand All @@ -44,7 +44,7 @@
v-e2e="'login-modal-remember-me'"
v-model="rememberMe"
name="remember-me"
label="Remember me"
:label="$t('Remember me')"
class="form__element checkbox"
/>
<div v-if="error.login">
Expand Down Expand Up @@ -120,7 +120,7 @@
:valid="!errors[0]"
:errorMessage="errors[0]"
name="email"
label="Your email"
:label="$t('Your email')"
class="form__element"
/>
</ValidationProvider>
Expand All @@ -131,7 +131,7 @@
:valid="!errors[0]"
:errorMessage="errors[0]"
name="first-name"
label="First Name"
:label="$t('First Name')"
class="form__element"
/>
</ValidationProvider>
Expand All @@ -142,7 +142,7 @@
:valid="!errors[0]"
:errorMessage="errors[0]"
name="last-name"
label="Last Name"
:label="$t('Last Name')"
class="form__element"
/>
</ValidationProvider>
Expand All @@ -153,7 +153,7 @@
:valid="!errors[0]"
:errorMessage="errors[0]"
name="password"
label="Password"
:label="$t('Password')"
type="password"
class="form__element"
/>
Expand All @@ -165,7 +165,7 @@
:valid="!errors[0]"
:errorMessage="errors[0]"
name="create-account"
label="I want to create an account"
:label="$t('I want to create an account')"
class="form__element"
/>
</ValidationProvider>
Expand Down
11 changes: 5 additions & 6 deletions packages/nuxt-theme-module/theme/components/WishlistSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
<SfSidebar
:visible="isWishlistSidebarOpen"
:button="false"
title="My Wishlist"
:title="$t('My Wishlist')"
@close="toggleWishlistSidebar"
class="sidebar sf-sidebar--right"
>
<template #title>
<div class="heading__wrapper">
<SfHeading :level="3" title="My wishlist" class="sf-heading--left"/>
<SfHeading :level="3" :title="$t('My Wishlist')" class="sf-heading--left"/>
<SfButton class="heading__close-button sf-button--pure" aria-label="Wishlist sidebar close button" @click="toggleWishlistSidebar">
<SfIcon icon="cross" size="14px" color="gray-primary"/>
</SfButton>
</div>
</template>
<transition name="fade" mode="out-in">
<div v-if="totalItems" class="my-wishlist" key="my-wishlist">
<div class="my-wishlist__total-items">Total items: <strong>{{ totalItems }}</strong></div>
<div class="my-wishlist__total-items">{{ $t('Total items') }}: <strong>{{ totalItems }}</strong></div>
<div class="collected-product-list">
<transition-group name="fade" tag="div">
<SfCollectedProduct
Expand Down Expand Up @@ -57,9 +57,8 @@
<div class="empty-wishlist__banner">
<SfImage :src="addBasePath('/icons/empty-cart.svg')" alt="Empty bag" class="empty-wishlist__icon" />
<SfHeading
title="Your bag is empty"
description="Looks like you haven’t added any items to the bag yet. Start
shopping to fill it in."
:title="$t('Your bag is empty')"
:description="$t('Empty')"
class="empty-wishlist__label"
/>
</div>
Expand Down
51 changes: 49 additions & 2 deletions packages/nuxt-theme-module/theme/lang/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export default {
'Details and status orders': 'Überprüfen Sie die Details und den Status Ihrer Bestellungen im Online-Shop. Sie können Ihre Bestellung auch stornieren oder eine Rücksendung anfordern. ',
'You currently have no orders': 'Sie haben derzeit keine Bestellungen',
'Start shopping': 'Einkaufen starten',
'Download': 'Herunterladen',
'Download all': 'Alle herunterladen',
'View details': 'Details anzeigen',
'Manage shipping addresses': 'Alle gewünschten Versandadressen verwalten (Arbeitsplatz, Privatadresse ...) Auf diese Weise müssen Sie die Versandadresse nicht bei jeder Bestellung manuell eingeben.',
Expand Down Expand Up @@ -155,5 +154,53 @@ export default {
'show more': 'mehr anzeigen',
'hide': 'ausblenden',
'Change to grid view': 'Zur Rasteransicht wechseln',
'Change to list view': 'Zur Listenansicht wechseln'
'Change to list view': 'Zur Listenansicht wechseln',
'Social': 'Social',
'I want to create an account': 'I want to create an account',
'Last Name': 'Last Name',
'First Name': 'First Name',
'Your email': 'Your email',
'Remember me': 'Remember me',
'My Cart': 'My Cart',
'Total items' : 'Total items',
'Empty bag': 'Empty bag',
'Your cart is empty': 'Your cart is empty',
'Subtotal price': 'Subtotal price',
'Basket': 'Basket',
'Choose language': 'Choose language',
'My Wishlist': 'My Wishlist',
'Street name': 'Street name',
'House/Apartment number': 'House/Apartment number',
'City': 'City',
'State/Province': 'State/Province',
'Country': 'Country',
'Zip-code': 'Zip-code',
'Phone number': 'Phone number',
'Thank you for your order!': 'Thank you for your order!',
'Your Purchase': 'Your Purchase',
'Primary contacts for any questions': 'Primary contacts for any questions',
'Your Account': 'Your Account',
'What can we improve': 'What can we improve',
'My Account': 'My Account',
'My profile': 'My profile',
'Personal Details': 'Personal Details',
'Billing details': 'Billing details',
'My newsletter': 'My newsletter',
'Log out': 'Log out',
'Order details': 'Order details',
'Order history': 'Order history',
'Read more': 'Read more',
'Read less': 'Read less',
'Woman': 'Woman',
'Man': 'Man',
'Kids': 'Kids',
'Personal data': 'Personal data',
'Password change': 'Password change',
'All Orders': 'All Orders',
'My orders': 'My orders',
'Order ID': 'Order ID',
'Date': 'Date',
'Status': 'Status',
'Returns': 'Returns',
'Total orders': 'Total orders'
};
51 changes: 49 additions & 2 deletions packages/nuxt-theme-module/theme/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export default {
'Details and status orders': 'Check the details and status of your orders in the online store. You can also cancel your order or request a return.',
'You currently have no orders': 'You currently have no orders',
'Start shopping': 'Start shopping',
'Download': 'Download',
'Download all': 'Download all',
'View details': 'View details',
'Manage shipping addresses': 'Manage all the shipping addresses you want (work place, home address...) This way you won"t have to enter the shipping address manually with each order.',
Expand Down Expand Up @@ -155,5 +154,53 @@ export default {
'show more': 'show more',
'hide': 'hide',
'Change to grid view': 'Change to grid view',
'Change to list view': 'Change to list view'
'Change to list view': 'Change to list view',
'Social': 'Social',
'I want to create an account': 'I want to create an account',
'Last Name': 'Last Name',
'First Name': 'First Name',
'Your email': 'Your email',
'Remember me': 'Remember me',
'My Cart': 'My Cart',
'Total items' : 'Total items',
'Empty bag': 'Empty bag',
'Your cart is empty': 'Your cart is empty',
'Subtotal price': 'Subtotal price',
'Basket': 'Basket',
'Choose language': 'Choose language',
'My Wishlist': 'My Wishlist',
'Street name': 'Street name',
'House/Apartment number': 'House/Apartment number',
'City': 'City',
'State/Province': 'State/Province',
'Country': 'Country',
'Zip-code': 'Zip-code',
'Phone number': 'Phone number',
'Thank you for your order!': 'Thank you for your order!',
'Your Purchase': 'Your Purchase',
'Primary contacts for any questions': 'Primary contacts for any questions',
'Your Account': 'Your Account',
'What can we improve': 'What can we improve',
'My Account': 'My Account',
'My profile': 'My profile',
'Personal Details': 'Personal Details',
'Billing details': 'Billing details',
'My newsletter': 'My newsletter',
'Log out': 'Log out',
'Order details': 'Order details',
'Order history': 'Order history',
'Read more': 'Read more',
'Read less': 'Read less',
'Woman': 'Woman',
'Man': 'Man',
'Kids': 'Kids',
'Personal data': 'Personal data',
'Password change': 'Password change',
'All Orders': 'All Orders',
'My orders': 'My orders',
'Order ID': 'Order ID',
'Date': 'Date',
'Status': 'Status',
'Returns': 'Returns',
'Total orders': 'Total orders'
};
Loading