-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated timeago strings #4012
Updated timeago strings #4012
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
client/app/components/TimeAgo.jsx
Outdated
@@ -6,6 +6,25 @@ import PropTypes from 'prop-types'; | |||
import { Moment } from '@/components/proptypes'; | |||
import { clientConfig } from '@/services/auth'; | |||
import useForceUpdate from '@/lib/hooks/useForceUpdate'; | |||
import Tooltip from 'antd/lib/tooltip'; | |||
|
|||
moment.updateLocale('en', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is something that applies globally it probably should be somewhere else (app/config
?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 56b6571
client/app/components/TimeAgo.jsx
Outdated
relativeTime: { | ||
future: '%s', | ||
past: '%s', | ||
s: 'just now', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we change any of the other strings or only this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nay.
I experimented with short-handing ("2 minutes ago" to "2m ago") but there's no straightforward way with moment
to apply it for widgets only.
* Updated timeago strings * Moved moment config to app/config
Description
This also manifests to "Outdated Queries", "Users" list and "Alerts" list.
Mobile & Desktop Screenshots