Add formatted message

merge-requests/3338/head
danidfra 2025-02-28 20:23:59 -03:00
rodzic 6a76bca7ff
commit a68df6fd1a
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -18,7 +18,7 @@ const SignUpPanel = () => {
function getGreeting() {
const hours = new Date().getHours();
return hours < 12 ? 'GM' : 'Hey There';
return hours < 12 ? <FormattedMessage id='signup_panel.greeting.gm' defaultMessage='GM' /> : <FormattedMessage id='signup_panel.greeting.hey' defaultMessage='Hey there' />;
}
return (

Wyświetl plik

@ -1467,6 +1467,8 @@
"settings.sessions": "Active sessions",
"settings.settings": "Settings",
"shared.tos": "Terms of Service",
"signup_panel.greeting.gm": "GM",
"signup_panel.greeting.hey": "Hey there",
"signup_panel.greeting_title": "{greeting}! Welcome aboard!",
"signup_panel.subtitle": "Sign up now to discuss what's happening.",
"signup_panel.title": "New to {site_title}?",