Skip to content

Commit

Permalink
fix: post localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
olgakup committed Nov 6, 2024
1 parent 44e9858 commit 1a8e102
Show file tree
Hide file tree
Showing 13 changed files with 1,716 additions and 867 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- fix/after-localizations

jobs:
synchronize-with-crowdin:
Expand All @@ -17,14 +18,14 @@ jobs:
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: false
upload_translations: true
download_translations: true
download_sources: true
localization_branch_name: l10n_crowdin_translations
create_pull_request: true
pull_request_title: 'New Crowdin Translations'
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
pull_request_base_branch_name: 'main'
pull_request_base_branch_name: 'fix/after-localizations'
env:
# A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository).
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@vueuse/core": "^10.11.0",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.6",
"tailwindcss": "^3.4.13",
"typescript": "^5.2.2",
"vite": "^5.3.1",
"vue": "^3.4.34",
Expand Down
264 changes: 156 additions & 108 deletions src/App.vue

Large diffs are not rendered by default.

Binary file added src/assets/lottie/lottie-xs.webp
Binary file not shown.
453 changes: 344 additions & 109 deletions src/libs/layouts/MewFooter.vue

Large diffs are not rendered by default.

367 changes: 265 additions & 102 deletions src/libs/layouts/MewHeader.vue

Large diffs are not rendered by default.

344 changes: 250 additions & 94 deletions src/libs/layouts/MewMobileMenu.vue

Large diffs are not rendered by default.

1,078 changes: 657 additions & 421 deletions src/libs/layouts/MewSubscribe.vue

Large diffs are not rendered by default.

36 changes: 23 additions & 13 deletions src/libs/layouts/MewSwitchDataTracking.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
<template>
<div class="flex align-center jusify-start">
<Switch :id="id" v-model="userConsentVal" :aria-label="t('switch')"
:class="[userConsentVal ? 'bg-primary' : 'bg-info', 'hoverOpacityHasBG relative inline-flex h-6 w-11 items-center rounded-full']">
<span :class="userConsentVal ? 'translate-x-6' : 'translate-x-1'"
class="inline-block h-4 w-4 transform rounded-full bg-white transition" />
<Switch
:id="id"
v-model="userConsentVal"
:aria-label="t('switch')"
:class="[
userConsentVal ? 'bg-primary' : 'bg-info',
'hoverOpacityHasBG relative inline-flex h-6 w-11 items-center rounded-full',
]"
>
<span
:class="userConsentVal ? 'translate-x-6' : 'translate-x-1'"
class="inline-block h-4 w-4 transform rounded-full bg-white transition"
/>
</Switch>
<p class="text8 pl-2">{{ t('data_tracking') }} {{ consentString }}</p>
<p class="text8 pl-2">{{ t("data_tracking") }} {{ consentString }}</p>
</div>
</template>

<script setup lang="ts">
import { computed } from "vue";
import { Switch } from "@headlessui/vue";
import messages from '@/locales/data-tracking/index'
import messages from "@/locales/data-tracking/index";
const props = defineProps({
id: {
Expand All @@ -25,16 +34,15 @@ const props = defineProps({
},
useI18n: {
required: true,
type: Function
}
type: Function,
},
});
const { t } = props.useI18n({
locale: 'en',
messages: {
...messages
}
})
...messages,
},
});
const emit = defineEmits<{
(e: "update:consent", newval: boolean): void;
}>();
Expand All @@ -43,7 +51,9 @@ const userConsentVal = computed({
set: (value) => emit("update:consent", value),
});
const consentString = computed(() => (userConsentVal.value ? t('on') : t('off')));
const consentString = computed(() =>
userConsentVal.value ? t("on") : t("off")
);
</script>
<style>
@import "../../style.css";
Expand Down
2 changes: 1 addition & 1 deletion src/locales/header/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
"title": "ethVM",
"description": "Обозреватель блокчейна"
},
"access_wallet": "Доступ к моему кошельку"
"access_wallet": "Доступ к кошельку"
}
8 changes: 4 additions & 4 deletions src/locales/subscribe/es.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"step1": {
"title": "Mejora tu dominio de las criptomonedas",
"description": "Mejora tus conocimientos con consejos de seguridad, información sobre el sector, noticias y mucho más.",
"enter_email": "Introduce tu correo electrónico",
"title": "Hazte mejor en cripto",
"description": "Mejora tus conocimientos con consejos de seguridad, noticias y más.",
"enter_email": "Ingresa tu correo",
"sign_me_up": "¡Apúntame!",
"email_error": "El correo electrónico no es válido",
"email_required": "Se requiere el correo electrónico",
Expand All @@ -18,7 +18,7 @@
},
"step3": {
"title": "¡Bienvenido al Universo MEW!",
"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.",
"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.",
"description2": "¡Avanza y mantente a la vanguardia en el Universo MEW!",
"finish": "Terminar",
"whats_next": "¿Qué sigue?",
Expand Down
16 changes: 8 additions & 8 deletions src/locales/subscribe/ru.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"step1": {
"title": "Научитесь пользоваться криптовалютой",
"description": "Повышайте свои навыки с помощью советов по безопасности, отраслевой аналитики, новостей и многого другого!",
"enter_email": "Введите свой адрес электронной почты",
"sign_me_up": "Зарегистрируйте меня!",
"title": "Станьте профи в крипте",
"description": "Повышайте навыки с советами по безопасности, аналитикой, и новостями!",
"enter_email": "Адрес электронной почты",
"sign_me_up": "Подписаться!",
"email_error": "адрес электронной почты недействителен",
"email_required": "требуется адрес электронной почты",
"unsubscribe": "Мы уважаем вашу конфиденциальность. Отменить подписку можно в любое время.",
"no_thanks": "Нет, спасибо, больше не показывайте это.",
"i_know": "Я уже все знаю о криптовалюте."
},
"step2": {
"title": "Расскажите нам, что вас интересует.",
"title": "Что вас интересует?",
"crypto_kb": "Знания о криптовалюте, лучшие практики и общие советы.",
"market": "Популярные токены, токены наиболее изменившиеся в цене и события на блокчейне.",
"market": "Популярные токены, обзор рынка, и новости блокчейна.",
"product_updates": "Обновления продукта"
},
"step3": {
"title": "Добро пожаловать во Вселенную MEW!",
"description1": "Мы рады видеть вас здесь, на блокчейне, с нами. Следите за своей почтой, чтобы быть в курсе последних новостей о криптовалютах, трендовых токенах, советов по безопасности и многого другого!",
"description2": "Двигайтесь вперед — и оставайтесь впереди — во Вселенной MEW!",
"description1": "Рады видеть вас на блокчейне! Следите за почтой, чтобы узнавать новости, тренды, советы по безопасности и многое другое!",
"description2": "Раскройте потенциал своего будущего со Вселенной MEW",
"finish": "Завершить",
"whats_next": "Что дальше:",
"create_wallet": "Создать кошелек",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1259,10 +1259,10 @@ supports-preserve-symlinks-flag@^1.0.0:
resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz"
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==

tailwindcss@^3.4.6:
version "3.4.7"
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.7.tgz#6092f18767f5933f59375b9afe558e592fc77201"
integrity sha512-rxWZbe87YJb4OcSopb7up2Ba4U82BoiSGUdoDr3Ydrg9ckxFS/YWsvhN323GMcddgU65QRy7JndC7ahhInhvlQ==
tailwindcss@^3.4.13:
version "3.4.14"
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.14.tgz#6dd23a7f54ec197b19159e91e3bb1e55e7aa73ac"
integrity sha512-IcSvOcTRcUtQQ7ILQL5quRDg7Xs93PdJEk1ZLbhhvJc7uj/OAhYOnruEiwnGgBvUtaUAJ8/mhSw1o8L2jCiENA==
dependencies:
"@alloc/quick-lru" "^5.2.0"
arg "^5.0.2"
Expand Down

0 comments on commit 1a8e102

Please sign in to comment.