kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Add formatted message
rodzic
6a76bca7ff
commit
a68df6fd1a
|
@ -18,7 +18,7 @@ const SignUpPanel = () => {
|
||||||
|
|
||||||
function getGreeting() {
|
function getGreeting() {
|
||||||
const hours = new Date().getHours();
|
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 (
|
return (
|
||||||
|
|
|
@ -1467,6 +1467,8 @@
|
||||||
"settings.sessions": "Active sessions",
|
"settings.sessions": "Active sessions",
|
||||||
"settings.settings": "Settings",
|
"settings.settings": "Settings",
|
||||||
"shared.tos": "Terms of Service",
|
"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.greeting_title": "{greeting}! Welcome aboard!",
|
||||||
"signup_panel.subtitle": "Sign up now to discuss what's happening.",
|
"signup_panel.subtitle": "Sign up now to discuss what's happening.",
|
||||||
"signup_panel.title": "New to {site_title}?",
|
"signup_panel.title": "New to {site_title}?",
|
||||||
|
|
Ładowanie…
Reference in New Issue