mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-13 02:49:37 +00:00
7d7d75d7e5
* Add support for localization * Add docs & format code * Add lib to docs
9 lines
202 B
TypeScript
9 lines
202 B
TypeScript
import TimeAgo from 'javascript-time-ago';
|
|
import en from 'javascript-time-ago/locale/en.json';
|
|
|
|
TimeAgo.addDefaultLocale(en);
|
|
|
|
const timeAgo = new TimeAgo(navigator.language);
|
|
|
|
export default timeAgo;
|