Skip to content

Commit 57ac575

Browse files
authored
Merge pull request #13 from MyEtherWallet/fix/after-localizations
Fix/after localizations
2 parents 2e09c38 + bf5135e commit 57ac575

File tree

16 files changed

+1720
-872
lines changed

16 files changed

+1720
-872
lines changed

.github/workflows/crowdin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: crowdin/github-action@v2
1818
with:
1919
upload_sources: true
20-
upload_translations: false
20+
upload_translations: true
2121
download_translations: true
2222
download_sources: true
2323
localization_branch_name: l10n_crowdin_translations

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@myetherwallet/vue-common-components",
3-
"version": "1.2.8",
3+
"version": "1.3.0",
44
"type": "module",
55
"files": [
66
"dist"
@@ -34,7 +34,7 @@
3434
"@vueuse/core": "^10.11.0",
3535
"autoprefixer": "^10.4.19",
3636
"postcss": "^8.4.38",
37-
"tailwindcss": "^3.4.6",
37+
"tailwindcss": "^3.4.13",
3838
"typescript": "^5.2.2",
3939
"vite": "^5.3.1",
4040
"vue": "^3.4.34",

src/App.vue

Lines changed: 156 additions & 108 deletions
Large diffs are not rendered by default.

src/assets/lottie/lottie-xs.webp

11 KB
Binary file not shown.

src/libs/layouts/MewFooter.vue

Lines changed: 344 additions & 109 deletions
Large diffs are not rendered by default.

src/libs/layouts/MewHeader.vue

Lines changed: 265 additions & 102 deletions
Large diffs are not rendered by default.

src/libs/layouts/MewMobileMenu.vue

Lines changed: 250 additions & 94 deletions
Large diffs are not rendered by default.

src/libs/layouts/MewSubscribe.vue

Lines changed: 657 additions & 421 deletions
Large diffs are not rendered by default.

src/libs/layouts/MewSwitchDataTracking.vue

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
<template>
22
<div class="flex align-center jusify-start">
3-
<Switch :id="id" v-model="userConsentVal" :aria-label="t('switch')"
4-
:class="[userConsentVal ? 'bg-primary' : 'bg-info', 'hoverOpacityHasBG relative inline-flex h-6 w-11 items-center rounded-full']">
5-
<span :class="userConsentVal ? 'translate-x-6' : 'translate-x-1'"
6-
class="inline-block h-4 w-4 transform rounded-full bg-white transition" />
3+
<Switch
4+
:id="id"
5+
v-model="userConsentVal"
6+
:aria-label="t('switch')"
7+
:class="[
8+
userConsentVal ? 'bg-primary' : 'bg-info',
9+
'hoverOpacityHasBG relative inline-flex h-6 w-11 items-center rounded-full',
10+
]"
11+
>
12+
<span
13+
:class="userConsentVal ? 'translate-x-6' : 'translate-x-1'"
14+
class="inline-block h-4 w-4 transform rounded-full bg-white transition"
15+
/>
716
</Switch>
8-
<p class="text8 pl-2">{{ t('data_tracking') }} {{ consentString }}</p>
17+
<p class="text8 pl-2">{{ t("data_tracking") }} {{ consentString }}</p>
918
</div>
1019
</template>
1120

1221
<script setup lang="ts">
1322
import { computed } from "vue";
1423
import { Switch } from "@headlessui/vue";
15-
import messages from '@/locales/data-tracking/index'
24+
import messages from "@/locales/data-tracking/index";
1625
1726
const props = defineProps({
1827
id: {
@@ -25,16 +34,15 @@ const props = defineProps({
2534
},
2635
useI18n: {
2736
required: true,
28-
type: Function
29-
}
37+
type: Function,
38+
},
3039
});
3140
3241
const { t } = props.useI18n({
33-
locale: 'en',
3442
messages: {
35-
...messages
36-
}
37-
})
43+
...messages,
44+
},
45+
});
3846
const emit = defineEmits<{
3947
(e: "update:consent", newval: boolean): void;
4048
}>();
@@ -43,7 +51,9 @@ const userConsentVal = computed({
4351
set: (value) => emit("update:consent", value),
4452
});
4553
46-
const consentString = computed(() => (userConsentVal.value ? t('on') : t('off')));
54+
const consentString = computed(() =>
55+
userConsentVal.value ? t("on") : t("off")
56+
);
4757
</script>
4858
<style>
4959
@import "../../style.css";

src/locales/footer/ko.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"team": "",
66
"privacy": "개인정보보호",
77
"terms": "약관",
8-
"security_policy": "Security Policy",
8+
"security_policy": "보안 정책",
99
"bug_bounty": "버그 바운티",
1010
"mobile_app": "MEW 모바일 앱",
1111
"portfolio_manager": "MEW 포트폴리오 관리자",
@@ -18,7 +18,7 @@
1818
"customer_support": "고객지원",
1919
"faq": "FAQ",
2020
"blog": "블로그",
21-
"press_kit": "Press Kit",
21+
"press_kit": "보도 자료",
2222
"advertise_with_us": "저희와 함께 광고하세요",
2323
"join_community": "MEW 커뮤니티에 가입하세요",
2424
"donate": {

src/locales/footer/zh.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"team": "团队介绍",
66
"privacy": "隐私条款",
77
"terms": "服务条款",
8-
"security_policy": "Security Policy",
8+
"security_policy": "安全政策",
99
"bug_bounty": "漏洞悬赏",
1010
"mobile_app": "MEW移动应用程序",
1111
"portfolio_manager": "MEW投资组合管理器",
@@ -18,7 +18,7 @@
1818
"customer_support": "客户服务",
1919
"faq": "常见问题",
2020
"blog": "博客",
21-
"press_kit": "Press Kit",
21+
"press_kit": "媒体包",
2222
"advertise_with_us": "投放广告",
2323
"join_community": "加入 MEW 社区",
2424
"donate": {

src/locales/header/ru.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@
3333
"title": "ethVM",
3434
"description": "Обозреватель блокчейна"
3535
},
36-
"access_wallet": "Доступ к моему кошельку"
36+
"access_wallet": "Доступ к кошельку"
3737
}

src/locales/subscribe/es.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"step1": {
3-
"title": "Mejora tu dominio de las criptomonedas",
4-
"description": "Mejora tus conocimientos con consejos de seguridad, información sobre el sector, noticias y mucho más.",
5-
"enter_email": "Introduce tu correo electrónico",
3+
"title": "Hazte mejor en cripto",
4+
"description": "Mejora tus conocimientos con consejos de seguridad, noticias y más.",
5+
"enter_email": "Ingresa tu correo",
66
"sign_me_up": "¡Apúntame!",
77
"email_error": "El correo electrónico no es válido",
88
"email_required": "Se requiere el correo electrónico",
@@ -18,7 +18,7 @@
1818
},
1919
"step3": {
2020
"title": "¡Bienvenido al Universo MEW!",
21-
"description1": "Estamos emocionados de tenerte aquí en la cadena con nosotros. Mantente atento a tu bandeja de entrada para recibir las últimas noticias sobre criptomonedas, tokens de moda, consejos de seguridad y mucho más.",
21+
"description1": "Mantente atento a tu bandeja de entrada para recibir las últimas noticias sobre criptomonedas, tokens de moda, consejos de seguridad y mucho más.",
2222
"description2": "¡Avanza y mantente a la vanguardia en el Universo MEW!",
2323
"finish": "Terminar",
2424
"whats_next": "¿Qué sigue?",

src/locales/subscribe/ko.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"step1": {
3-
"title": "암호화폐 투자 실력을 향상하세요",
3+
"title": "암호화폐 실력을 향상하세요",
44
"description": "보안 팁, 업계 인사이트, 뉴스 등을 통해 실력을 높여보세요!",
55
"enter_email": "이메일 입력",
66
"sign_me_up": "가입하세요!",

src/locales/subscribe/ru.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"step1": {
3-
"title": "Научитесь пользоваться криптовалютой",
4-
"description": "Повышайте свои навыки с помощью советов по безопасности, отраслевой аналитики, новостей и многого другого!",
5-
"enter_email": "Введите свой адрес электронной почты",
6-
"sign_me_up": "Зарегистрируйте меня!",
3+
"title": "Станьте профи в крипте",
4+
"description": "Повышайте навыки с советами по безопасности, аналитикой, и новостями!",
5+
"enter_email": "Введите email",
6+
"sign_me_up": "Подписаться!",
77
"email_error": "адрес электронной почты недействителен",
88
"email_required": "требуется адрес электронной почты",
99
"unsubscribe": "Мы уважаем вашу конфиденциальность. Отменить подписку можно в любое время.",
1010
"no_thanks": "Нет, спасибо, больше не показывайте это.",
1111
"i_know": "Я уже все знаю о криптовалюте."
1212
},
1313
"step2": {
14-
"title": "Расскажите нам, что вас интересует.",
14+
"title": "Что вас интересует?",
1515
"crypto_kb": "Знания о криптовалюте, лучшие практики и общие советы.",
16-
"market": "Популярные токены, токены наиболее изменившиеся в цене и события на блокчейне.",
16+
"market": "Популярные токены, обзор рынка, и новости блокчейна.",
1717
"product_updates": "Обновления продукта"
1818
},
1919
"step3": {
2020
"title": "Добро пожаловать во Вселенную MEW!",
21-
"description1": "Мы рады видеть вас здесь, на блокчейне, с нами. Следите за своей почтой, чтобы быть в курсе последних новостей о криптовалютах, трендовых токенах, советов по безопасности и многого другого!",
22-
"description2": "Двигайтесь вперед — и оставайтесь впереди — во Вселенной MEW!",
21+
"description1": "Рады видеть вас на блокчейне! Следите за почтой, чтобы узнавать новости, тренды, советы по безопасности и многое другое!",
22+
"description2": "Раскройте потенциал своего будущего со Вселенной MEW",
2323
"finish": "Завершить",
2424
"whats_next": "Что дальше:",
2525
"create_wallet": "Создать кошелек",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,10 +1259,10 @@ supports-preserve-symlinks-flag@^1.0.0:
12591259
resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz"
12601260
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
12611261

1262-
tailwindcss@^3.4.6:
1263-
version "3.4.7"
1264-
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.7.tgz#6092f18767f5933f59375b9afe558e592fc77201"
1265-
integrity sha512-rxWZbe87YJb4OcSopb7up2Ba4U82BoiSGUdoDr3Ydrg9ckxFS/YWsvhN323GMcddgU65QRy7JndC7ahhInhvlQ==
1262+
tailwindcss@^3.4.13:
1263+
version "3.4.14"
1264+
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.14.tgz#6dd23a7f54ec197b19159e91e3bb1e55e7aa73ac"
1265+
integrity sha512-IcSvOcTRcUtQQ7ILQL5quRDg7Xs93PdJEk1ZLbhhvJc7uj/OAhYOnruEiwnGgBvUtaUAJ8/mhSw1o8L2jCiENA==
12661266
dependencies:
12671267
"@alloc/quick-lru" "^5.2.0"
12681268
arg "^5.0.2"

0 commit comments

Comments
 (0)