Skip to content

Commit

Permalink
localization updated
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-dukhovnyy committed Jan 7, 2024
1 parent abe302c commit e83014e
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 26 deletions.
1 change: 0 additions & 1 deletion components/Catalog/CatalogModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ setInterval(moveForward, import.meta.env.MODE === 'development' ? 7000 : 3000);
button > span {
display: block;
padding-top: 4px;
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/Header/Cart/HCart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="cart__price">
<HeaderCart />
<TheButton size="lg" type="error-filled" @click="buy">
{{ t('cta.buy') }}
{{ t('cta.buy-all') }}
</TheButton>
</div>
<div v-if="CART_ITEMS.length > 0" class="cart__list">
Expand Down
5 changes: 4 additions & 1 deletion components/Header/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
>
<p>
<span class="contacts__phone">{{ phone }}</span>
<span class="contacts__city"> Kyiv </span>
<span class="contacts__city">
{{ t('location') }}
</span>
</p>
</div>
<div class="left-group animate__animated animate__fadeInRight">
Expand All @@ -29,6 +31,7 @@ import Cart from './Cart/HCart.vue';
import { useCartStore } from '~/store/cart';
const cartStore = useCartStore();
const { t } = useLocator();
const show = computed(() => cartStore.SHOW_CART_POPUP);
const scrollToTop = () => {
Expand Down
2 changes: 1 addition & 1 deletion helpers/openPayWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const openWin = (
class="cvv clear"
>
</div>
<button class="buy-btn">BUY</button>
<button class="buy-btn">PAY & CONFIRM ORDER</button>
<div class="or-decoration"> - or - </div>
<div class="buttons-contain">
<button>
Expand Down
24 changes: 14 additions & 10 deletions locales/en-US.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
{
"filters": {
"genders": {
"man": "Man",
"woman": "Woman",
"kids": "Kids"
"man": "men",
"woman": "women",
"kids": "kids"
},
"categories": {
"new": "new",
"sale": "sale",
"most-popular": "most popular",
"price-low-to-hight": "price low to hight",
"price-hight-to-low": "price hight to low"
"most-popular": "best seller",
"price-low-to-hight": "price: low - hight",
"price-hight-to-low": "price: hight - low"
}
},

"cta": {
"action-button": "browse",
"buy": "buy",
"add-to-cart": "to cart",
"buy": "Checkout",
"buy-all": "Complete order",
"add-to-cart": "Add to bag",
"slogan": ["sunglasses", "for all", "life", "seasons"]
},

"cart": {
"cart-is-empty": "Cart is currently empty",
"cart-is-empty": "There are no items in your bag",
"delete-item": "Delete?"
}
},

"location": "kyiv"
}
26 changes: 15 additions & 11 deletions locales/uk-UA.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
{
"filters": {
"genders": {
"man": "Чоловікам",
"woman": "Жінкам",
"kids": "Діти"
"man": "чоловікам",
"woman": "жінкам",
"kids": "дітям"
},
"categories": {
"new": "новинки",
"sale": "зі знижкою",
"most-popular": "популярні",
"price-low-to-hight": "починаючи з дешевих",
"price-hight-to-low": "починаючи з дорогих"
"most-popular": "найпопулярніші",
"price-low-to-hight": "ціна: низька - висока",
"price-hight-to-low": "ціна: висока - низька"
}
},

"cta": {
"action-button": "дивитися",
"buy": "купити",
"action-button": "перейти",
"buy": "оформити",
"buy-all": "оформити",
"add-to-cart": "до кошика",
"slogan": ["сонцезахисні окуляри", "на всі", "випадки", "життя"]
"slogan": ["налаштуйся", "на нові", "рухи", "життя"]
},

"cart": {
"cart-is-empty": "Кошик наразі порожній",
"cart-is-empty": "У вашому кошику немає товарів",
"delete-item": "Видалити?"
}
},

"location": "київ"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "suncase",
"version": "3.3.0",
"version": "3.3.1",
"description": "Online sunglasses store",
"type": "module",
"author": "Oleksandr Dukhovnyy <[email protected]> (https://github.com/oleksandr-dukhovnyy)",
Expand Down
3 changes: 3 additions & 0 deletions types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ declare namespace Localization {
cta: {
'action-button': string;
buy: string;
'buy-all': string;
'add-to-cart': string;
slogan: string[];
};
Expand All @@ -26,6 +27,8 @@ declare namespace Localization {
'cart-is-empty': string;
'delete-item': string;
};

location: string;
}

export interface Lang {
Expand Down

0 comments on commit e83014e

Please sign in to comment.