Skip to content

Commit

Permalink
chore: translations for the update block
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Jan 1, 2024
1 parent 33c9d96 commit 69fecaf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/Update.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<div class="fixed z-20 bottom-[30px] right-[30px] opacity-80 hover:opacity-100 transition-all">
<div class="w-[160px] h-[160px] -z-1 rounded-full bg-brand-600 blur-3xl right-0 -bottom-20 absolute" />
<div class="z-1 relative text-end text-fg-dimmed">
A new version is available <strong>{{ data.version }}</strong><br>
<a :href="`https://github.com/hywax/mafl/releases/tag/v${data.version}`" class="border-b border-dashed" target="_blank">Visit on github →</a>
{{ $t('update.message') }} <strong>{{ data.version }}</strong><br>
<a :href="`https://github.com/hywax/mafl/releases/tag/v${data.version}`" class="border-b border-dashed" target="_blank">{{ $t('update.visit') }}</a>
</div>
</div>
</Teleport>
Expand Down
7 changes: 6 additions & 1 deletion locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@

"service.ping.description": "Server responded in",
"service.ping.units": "ms",
"service.ping.error": "Server not responding"
"service.ping.error": "Server not responding",

"update": {
"message": "A new version is available",
"visit": "Visit on github →"
}
}
7 changes: 6 additions & 1 deletion locales/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@

"service.ping.description": "Время ответа сервера",
"service.ping.units": "мс",
"service.ping.error": "Сервер не отвечает"
"service.ping.error": "Сервер не отвечает",

"update": {
"message": "Доступна новая версия",
"visit": "Перейти в github →"
}
}

0 comments on commit 69fecaf

Please sign in to comment.