From 519175f9fd7c3a835c55097a47126cf25ed9480d Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Fri, 3 Jul 2026 18:22:19 -0300 Subject: [PATCH] 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. --- lang/ar/common.php | 2 ++ lang/de/common.php | 2 ++ lang/el/common.php | 2 ++ lang/en/common.php | 2 ++ lang/es/common.php | 2 ++ lang/fr/common.php | 2 ++ lang/it/common.php | 2 ++ lang/ja/common.php | 2 ++ lang/ko/common.php | 2 ++ lang/nl/common.php | 2 ++ lang/pl/common.php | 2 ++ lang/pt-BR/common.php | 2 ++ lang/ru/common.php | 2 ++ lang/tr/common.php | 2 ++ lang/zh/common.php | 2 ++ resources/js/components/AppSidebar.vue | 2 +- resources/js/components/NavMain.vue | 2 +- 17 files changed, 32 insertions(+), 2 deletions(-) diff --git a/lang/ar/common.php b/lang/ar/common.php index 7ce8afda..02d969c9 100644 --- a/lang/ar/common.php +++ b/lang/ar/common.php @@ -6,6 +6,8 @@ 'back' => 'رجوع', + 'beta' => 'تجريبي', + 'confirm_modal' => [ 'cannot_be_undone' => 'لا يمكن التراجع عن هذا الإجراء.', 'type' => 'اكتب', diff --git a/lang/de/common.php b/lang/de/common.php index c059b336..ce786c16 100644 --- a/lang/de/common.php +++ b/lang/de/common.php @@ -6,6 +6,8 @@ 'back' => 'Zurück', + 'beta' => 'Beta', + 'confirm_modal' => [ 'cannot_be_undone' => 'Dies kann nicht rückgängig gemacht werden.', 'type' => 'Gib', diff --git a/lang/el/common.php b/lang/el/common.php index fc8fc86a..ec186956 100644 --- a/lang/el/common.php +++ b/lang/el/common.php @@ -6,6 +6,8 @@ 'back' => 'Πίσω', + 'beta' => 'Βήτα', + 'confirm_modal' => [ 'cannot_be_undone' => 'Αυτό δεν μπορεί να αναιρεθεί.', 'type' => 'Πληκτρολογήστε', diff --git a/lang/en/common.php b/lang/en/common.php index b90f4a9e..a41a2d55 100644 --- a/lang/en/common.php +++ b/lang/en/common.php @@ -6,6 +6,8 @@ 'back' => 'Back', + 'beta' => 'Beta', + 'confirm_modal' => [ 'cannot_be_undone' => 'This cannot be undone.', 'type' => 'Type', diff --git a/lang/es/common.php b/lang/es/common.php index c85c9c0f..fe84cf9b 100644 --- a/lang/es/common.php +++ b/lang/es/common.php @@ -6,6 +6,8 @@ 'back' => 'Volver', + 'beta' => 'Beta', + 'confirm_modal' => [ 'cannot_be_undone' => 'Esta acción no se puede deshacer.', 'type' => 'Escribe', diff --git a/lang/fr/common.php b/lang/fr/common.php index deef0b33..206a805d 100644 --- a/lang/fr/common.php +++ b/lang/fr/common.php @@ -6,6 +6,8 @@ 'back' => 'Retour', + 'beta' => 'Bêta', + 'confirm_modal' => [ 'cannot_be_undone' => 'Cette action est irréversible.', 'type' => 'Saisissez', diff --git a/lang/it/common.php b/lang/it/common.php index 5149397f..44785808 100644 --- a/lang/it/common.php +++ b/lang/it/common.php @@ -6,6 +6,8 @@ 'back' => 'Indietro', + 'beta' => 'Beta', + 'confirm_modal' => [ 'cannot_be_undone' => 'Questa azione non può essere annullata.', 'type' => 'Digita', diff --git a/lang/ja/common.php b/lang/ja/common.php index 16a3d19e..ab2a26e8 100644 --- a/lang/ja/common.php +++ b/lang/ja/common.php @@ -6,6 +6,8 @@ 'back' => '戻る', + 'beta' => 'ベータ', + 'confirm_modal' => [ 'cannot_be_undone' => 'この操作は取り消せません。', 'type' => '入力', diff --git a/lang/ko/common.php b/lang/ko/common.php index 19c6d187..5bb2d175 100644 --- a/lang/ko/common.php +++ b/lang/ko/common.php @@ -6,6 +6,8 @@ 'back' => '뒤로', + 'beta' => '베타', + 'confirm_modal' => [ 'cannot_be_undone' => '이 작업은 되돌릴 수 없습니다.', 'type' => '입력', diff --git a/lang/nl/common.php b/lang/nl/common.php index 8d880394..7fb1ead5 100644 --- a/lang/nl/common.php +++ b/lang/nl/common.php @@ -6,6 +6,8 @@ 'back' => 'Terug', + 'beta' => 'Bèta', + 'confirm_modal' => [ 'cannot_be_undone' => 'Dit kan niet ongedaan worden gemaakt.', 'type' => 'Typ', diff --git a/lang/pl/common.php b/lang/pl/common.php index cccecbde..ed7a3fe1 100644 --- a/lang/pl/common.php +++ b/lang/pl/common.php @@ -6,6 +6,8 @@ 'back' => 'Wstecz', + 'beta' => 'Beta', + 'confirm_modal' => [ 'cannot_be_undone' => 'Tej operacji nie można cofnąć.', 'type' => 'Wpisz', diff --git a/lang/pt-BR/common.php b/lang/pt-BR/common.php index 6cfae2e2..a64d8a34 100644 --- a/lang/pt-BR/common.php +++ b/lang/pt-BR/common.php @@ -6,6 +6,8 @@ 'back' => 'Voltar', + 'beta' => 'Beta', + 'confirm_modal' => [ 'cannot_be_undone' => 'Esta ação não pode ser desfeita.', 'type' => 'Digite', diff --git a/lang/ru/common.php b/lang/ru/common.php index f0f12c68..6b7e39fd 100644 --- a/lang/ru/common.php +++ b/lang/ru/common.php @@ -6,6 +6,8 @@ 'back' => 'Назад', + 'beta' => 'Бета', + 'confirm_modal' => [ 'cannot_be_undone' => 'Это действие нельзя отменить.', 'type' => 'Введите', diff --git a/lang/tr/common.php b/lang/tr/common.php index 64bb4c46..294ef152 100644 --- a/lang/tr/common.php +++ b/lang/tr/common.php @@ -6,6 +6,8 @@ 'back' => 'Geri', + 'beta' => 'Beta', + 'confirm_modal' => [ 'cannot_be_undone' => 'Bu işlem geri alınamaz.', 'type' => 'Yazın:', diff --git a/lang/zh/common.php b/lang/zh/common.php index b6298fc5..f4e517b1 100644 --- a/lang/zh/common.php +++ b/lang/zh/common.php @@ -6,6 +6,8 @@ 'back' => '返回', + 'beta' => '测试版', + 'confirm_modal' => [ 'cannot_be_undone' => '此操作无法撤销。', 'type' => '输入', diff --git a/resources/js/components/AppSidebar.vue b/resources/js/components/AppSidebar.vue index d7b66dd7..c4e714fc 100644 --- a/resources/js/components/AppSidebar.vue +++ b/resources/js/components/AppSidebar.vue @@ -87,7 +87,7 @@ const mainNavItems = computed(() => [ title: trans('sidebar.automations'), href: automations.url(), icon: IconBolt, - badge: 'Beta', + badge: trans('common.beta'), }, ] : []), diff --git a/resources/js/components/NavMain.vue b/resources/js/components/NavMain.vue index f0cd0acd..ece3b176 100644 --- a/resources/js/components/NavMain.vue +++ b/resources/js/components/NavMain.vue @@ -40,7 +40,7 @@ const { urlIsActive } = useActiveUrl(); {{ item.badge }}