Skip to content
Snippets Groups Projects
Commit 52f4c2c1 authored by Wu Jeremy's avatar Wu Jeremy
Browse files

Fix: MR widget timeago locale issue

* Add language code for timeago formatter.

Changelog: fixed
parent 8f44477d
No related branches found
No related tags found
1 merge request!121625Fix: MR widget timeago locale issue
import getStateKey from 'ee_else_ce/vue_merge_request_widget/stores/get_state_key';
import { badgeState } from '~/issuable/components/status_box.vue';
import { STATUS_CLOSED, STATUS_MERGED, STATUS_OPEN } from '~/issues/constants';
import { formatDate, getTimeago } from '~/lib/utils/datetime_utility';
import { formatDate, getTimeago, timeagoLanguageCode } from '~/lib/utils/datetime_utility';
import { machine } from '~/lib/utils/finite_state_machine';
import {
MTWPS_MERGE_STRATEGY,
......@@ -341,7 +341,7 @@ export default class MergeRequestStore {
return '';
}
return format(date);
return format(date, timeagoLanguageCode);
}
static getPreferredAutoMergeStrategy(availableAutoMergeStrategies) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment