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:
Paulo Castellano 2026-07-03 18:22:19 -03:00
parent e17b86ac93
commit 519175f9fd
17 changed files with 32 additions and 2 deletions

View file

@ -6,6 +6,8 @@
'back' => 'رجوع',
'beta' => 'تجريبي',
'confirm_modal' => [
'cannot_be_undone' => 'لا يمكن التراجع عن هذا الإجراء.',
'type' => 'اكتب',

View file

@ -6,6 +6,8 @@
'back' => 'Zurück',
'beta' => 'Beta',
'confirm_modal' => [
'cannot_be_undone' => 'Dies kann nicht rückgängig gemacht werden.',
'type' => 'Gib',

View file

@ -6,6 +6,8 @@
'back' => 'Πίσω',
'beta' => 'Βήτα',
'confirm_modal' => [
'cannot_be_undone' => 'Αυτό δεν μπορεί να αναιρεθεί.',
'type' => 'Πληκτρολογήστε',

View file

@ -6,6 +6,8 @@
'back' => 'Back',
'beta' => 'Beta',
'confirm_modal' => [
'cannot_be_undone' => 'This cannot be undone.',
'type' => 'Type',

View file

@ -6,6 +6,8 @@
'back' => 'Volver',
'beta' => 'Beta',
'confirm_modal' => [
'cannot_be_undone' => 'Esta acción no se puede deshacer.',
'type' => 'Escribe',

View file

@ -6,6 +6,8 @@
'back' => 'Retour',
'beta' => 'Bêta',
'confirm_modal' => [
'cannot_be_undone' => 'Cette action est irréversible.',
'type' => 'Saisissez',

View file

@ -6,6 +6,8 @@
'back' => 'Indietro',
'beta' => 'Beta',
'confirm_modal' => [
'cannot_be_undone' => 'Questa azione non può essere annullata.',
'type' => 'Digita',

View file

@ -6,6 +6,8 @@
'back' => '戻る',
'beta' => 'ベータ',
'confirm_modal' => [
'cannot_be_undone' => 'この操作は取り消せません。',
'type' => '入力',

View file

@ -6,6 +6,8 @@
'back' => '뒤로',
'beta' => '베타',
'confirm_modal' => [
'cannot_be_undone' => '이 작업은 되돌릴 수 없습니다.',
'type' => '입력',

View file

@ -6,6 +6,8 @@
'back' => 'Terug',
'beta' => 'Bèta',
'confirm_modal' => [
'cannot_be_undone' => 'Dit kan niet ongedaan worden gemaakt.',
'type' => 'Typ',

View file

@ -6,6 +6,8 @@
'back' => 'Wstecz',
'beta' => 'Beta',
'confirm_modal' => [
'cannot_be_undone' => 'Tej operacji nie można cofnąć.',
'type' => 'Wpisz',

View file

@ -6,6 +6,8 @@
'back' => 'Voltar',
'beta' => 'Beta',
'confirm_modal' => [
'cannot_be_undone' => 'Esta ação não pode ser desfeita.',
'type' => 'Digite',

View file

@ -6,6 +6,8 @@
'back' => 'Назад',
'beta' => 'Бета',
'confirm_modal' => [
'cannot_be_undone' => 'Это действие нельзя отменить.',
'type' => 'Введите',

View file

@ -6,6 +6,8 @@
'back' => 'Geri',
'beta' => 'Beta',
'confirm_modal' => [
'cannot_be_undone' => 'Bu işlem geri alınamaz.',
'type' => 'Yazın:',

View file

@ -6,6 +6,8 @@
'back' => '返回',
'beta' => '测试版',
'confirm_modal' => [
'cannot_be_undone' => '此操作无法撤销。',
'type' => '输入',

View file

@ -87,7 +87,7 @@ const mainNavItems = computed<NavItem[]>(() => [
title: trans('sidebar.automations'),
href: automations.url(),
icon: IconBolt,
badge: 'Beta',
badge: trans('common.beta'),
},
]
: []),

View file

@ -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>