From 9a77b716a149dfd784d44f286182039b281670eb Mon Sep 17 00:00:00 2001 From: Youssef Date: Sat, 9 Aug 2025 17:43:45 -0400 Subject: [PATCH] i18n : wrap core IU stringg with __() (nav, button, tabs, breadcrumbs ) --- .../src/components/Controls/Autocomplete.vue | 2 +- frontend/src/pages/Batch.vue | 16 ++++++++-------- frontend/src/pages/BatchDetail.vue | 2 +- frontend/src/pages/CourseDetail.vue | 2 +- frontend/src/pages/Lesson.vue | 2 +- frontend/src/pages/Notifications.vue | 2 +- frontend/src/pages/Profile.vue | 8 ++++---- frontend/src/utils/index.js | 10 +++++----- 8 files changed, 22 insertions(+), 22 deletions(-) diff --git a/frontend/src/components/Controls/Autocomplete.vue b/frontend/src/components/Controls/Autocomplete.vue index 41acfff4..f8daceb1 100644 --- a/frontend/src/components/Controls/Autocomplete.vue +++ b/frontend/src/components/Controls/Autocomplete.vue @@ -53,7 +53,7 @@ " :value="query" autocomplete="off" - placeholder="Search" + :placeholder="__('Search')" /> diff --git a/frontend/src/pages/Profile.vue b/frontend/src/pages/Profile.vue index 9f9c67fb..ac9ca350 100644 --- a/frontend/src/pages/Profile.vue +++ b/frontend/src/pages/Profile.vue @@ -195,14 +195,14 @@ const isSessionUser = () => { } const getTabButtons = () => { - let buttons = [{ label: 'About' }, { label: 'Certificates' }] - if ($user.data?.is_moderator) buttons.push({ label: 'Roles' }) + let buttons = [{ label: __('About') }, { label: __('Certificates') }] + if ($user.data?.is_moderator) buttons.push({ label: __('Roles') }) if ( isSessionUser() && ($user.data?.is_evaluator || $user.data?.is_moderator) ) { - buttons.push({ label: 'Slots' }) - buttons.push({ label: 'Schedule' }) + buttons.push({ label: __('Slots') }) + buttons.push({ label: __('Schedule') }) } return buttons diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index d9b89681..aa781212 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -403,7 +403,7 @@ export function getUserTimezone() { export function getSidebarLinks() { return [ { - label: 'Courses', + label: __('Courses'), icon: 'BookOpen', to: 'Courses', activeFor: [ @@ -415,25 +415,25 @@ export function getSidebarLinks() { ], }, { - label: 'Batches', + label: __('Batches'), icon: 'Users', to: 'Batches', activeFor: ['Batches', 'BatchDetail', 'Batch', 'BatchForm'], }, { - label: 'Certified Members', + label: __('Certified Members'), icon: 'GraduationCap', to: 'CertifiedParticipants', activeFor: ['CertifiedParticipants'], }, { - label: 'Jobs', + label: __('Jobs'), icon: 'Briefcase', to: 'Jobs', activeFor: ['Jobs', 'JobDetail'], }, { - label: 'Statistics', + label: __('Statistics'), icon: 'TrendingUp', to: 'Statistics', activeFor: ['Statistics'],