Skip to content

Commit 1a8e102

Browse files
author
olgakup
committed
fix: post localizations
1 parent 44e9858 commit 1a8e102

File tree

13 files changed

+1716
-867
lines changed

13 files changed

+1716
-867
lines changed

.github/workflows/crowdin.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- fix/after-localizations
78

89
jobs:
910
synchronize-with-crowdin:
@@ -17,14 +18,14 @@ jobs:
1718
uses: crowdin/github-action@v2
1819
with:
1920
upload_sources: true
20-
upload_translations: false
21+
upload_translations: true
2122
download_translations: true
2223
download_sources: true
2324
localization_branch_name: l10n_crowdin_translations
2425
create_pull_request: true
2526
pull_request_title: 'New Crowdin Translations'
2627
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
27-
pull_request_base_branch_name: 'main'
28+
pull_request_base_branch_name: 'fix/after-localizations'
2829
env:
2930
# A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository).
3031
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
Loading

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/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
}

0 commit comments

Comments
 (0)