From 8297cbec99b4e06fa74649526a3ea8692400b771 Mon Sep 17 00:00:00 2001 From: jelveh Date: Tue, 28 Apr 2026 10:41:01 -0700 Subject: [PATCH] Use i18n welcome text and adjust UI styles --- src/gui/src/UI/Dashboard/TabHome.js | 12 ++---------- src/gui/src/UI/UIWindowCopyToken.js | 2 +- src/gui/src/css/dashboard.css | 5 ----- src/gui/src/i18n/translations/en.js | 2 ++ 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/src/gui/src/UI/Dashboard/TabHome.js b/src/gui/src/UI/Dashboard/TabHome.js index de4688152..f9177bf84 100644 --- a/src/gui/src/UI/Dashboard/TabHome.js +++ b/src/gui/src/UI/Dashboard/TabHome.js @@ -19,13 +19,6 @@ import UIWindowSaveAccount from '../UIWindowSaveAccount.js'; -function getTimeGreeting () { - const hour = new Date().getHours(); - if ( hour < 12 ) return 'Good morning'; - if ( hour < 17 ) return 'Good afternoon'; - return 'Good evening'; -} - function buildRecentAppsHTML () { let h = ''; @@ -121,7 +114,6 @@ const TabHome = { html () { const username = window.user?.username || 'User'; - const greeting = getTimeGreeting(); const profilePicture = window.user?.profile?.picture || window.icons['profile.svg']; let h = ''; @@ -133,9 +125,9 @@ const TabHome = { h += '
'; h += '
'; h += `
`; - h += `${greeting},`; + h += `${i18n('welcome')},`; h += `

${html_encode(username)}

`; - h += '

Your personal cloud computer

'; + h += `

${i18n('your_personal_internet_computer')}

`; // Show warning if account is temporary/unsaved if ( window.user?.is_temp ) { h += '