Translate the sidebar Beta badge and place it at the row end for RTL
Move the nav badge from the physical right-2 to the logical end-2 so it sits at the end of the row in both directions (right in LTR, left in RTL). Replace the hardcoded 'Beta' string with a global common.beta translation key across all 15 locales.
This commit is contained in:
parent
e17b86ac93
commit
519175f9fd
17 changed files with 32 additions and 2 deletions
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'رجوع',
|
||||
|
||||
'beta' => 'تجريبي',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'لا يمكن التراجع عن هذا الإجراء.',
|
||||
'type' => 'اكتب',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'Zurück',
|
||||
|
||||
'beta' => 'Beta',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'Dies kann nicht rückgängig gemacht werden.',
|
||||
'type' => 'Gib',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'Πίσω',
|
||||
|
||||
'beta' => 'Βήτα',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'Αυτό δεν μπορεί να αναιρεθεί.',
|
||||
'type' => 'Πληκτρολογήστε',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'Back',
|
||||
|
||||
'beta' => 'Beta',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'This cannot be undone.',
|
||||
'type' => 'Type',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'Volver',
|
||||
|
||||
'beta' => 'Beta',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'Esta acción no se puede deshacer.',
|
||||
'type' => 'Escribe',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'Retour',
|
||||
|
||||
'beta' => 'Bêta',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'Cette action est irréversible.',
|
||||
'type' => 'Saisissez',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'Indietro',
|
||||
|
||||
'beta' => 'Beta',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'Questa azione non può essere annullata.',
|
||||
'type' => 'Digita',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => '戻る',
|
||||
|
||||
'beta' => 'ベータ',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'この操作は取り消せません。',
|
||||
'type' => '入力',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => '뒤로',
|
||||
|
||||
'beta' => '베타',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => '이 작업은 되돌릴 수 없습니다.',
|
||||
'type' => '입력',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'Terug',
|
||||
|
||||
'beta' => 'Bèta',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'Dit kan niet ongedaan worden gemaakt.',
|
||||
'type' => 'Typ',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'Wstecz',
|
||||
|
||||
'beta' => 'Beta',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'Tej operacji nie można cofnąć.',
|
||||
'type' => 'Wpisz',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'Voltar',
|
||||
|
||||
'beta' => 'Beta',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'Esta ação não pode ser desfeita.',
|
||||
'type' => 'Digite',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'Назад',
|
||||
|
||||
'beta' => 'Бета',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'Это действие нельзя отменить.',
|
||||
'type' => 'Введите',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => 'Geri',
|
||||
|
||||
'beta' => 'Beta',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => 'Bu işlem geri alınamaz.',
|
||||
'type' => 'Yazın:',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
'back' => '返回',
|
||||
|
||||
'beta' => '测试版',
|
||||
|
||||
'confirm_modal' => [
|
||||
'cannot_be_undone' => '此操作无法撤销。',
|
||||
'type' => '输入',
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ const mainNavItems = computed<NavItem[]>(() => [
|
|||
title: trans('sidebar.automations'),
|
||||
href: automations.url(),
|
||||
icon: IconBolt,
|
||||
badge: 'Beta',
|
||||
badge: trans('common.beta'),
|
||||
},
|
||||
]
|
||||
: []),
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ const { urlIsActive } = useActiveUrl();
|
|||
<Badge
|
||||
v-if="item.badge"
|
||||
variant="warning"
|
||||
class="pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 px-1.5 group-data-[collapsible=icon]:hidden"
|
||||
class="pointer-events-none absolute top-1/2 end-2 -translate-y-1/2 px-1.5 group-data-[collapsible=icon]:hidden"
|
||||
>
|
||||
{{ item.badge }}
|
||||
</Badge>
|
||||
|
|
|
|||
Loading…
Reference in a new issue