kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Add formatted message
rodzic
6a76bca7ff
commit
a68df6fd1a
|
@ -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 (
|
||||
|
|
|
@ -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}?",
|
||||
|
|
Ładowanie…
Reference in New Issue