Skip to content

Commit

Permalink
fix: code format
Browse files Browse the repository at this point in the history
  • Loading branch information
YUCLing committed Oct 2, 2024
1 parent 7f336dc commit b6bf4d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions framework/core/js/src/common/Translator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ export default class Translator {

/**
* Formats the time.
*
*
* The format of the time will be chosen by the following order:
* - The format ID defined in current locale.
* - The provided fallback format.
* - DayJS default format.
*/
formatDateTime(time: Dayjs, id?: string, fallback?: string): string {
const formatCallback = (id && this.dateTimeFormats.has(id)) && this.dateTimeFormats.get(id);
const formatCallback = id && this.dateTimeFormats.has(id) && this.dateTimeFormats.get(id);
if (formatCallback) {
const result = formatCallback(fallback);
if (result) return result;
Expand Down
2 changes: 1 addition & 1 deletion framework/core/js/src/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'bootstrap/js/transition';
import 'jquery.hotkeys/jquery.hotkeys';

import relativeTime from 'dayjs/plugin/relativeTime';
import localizedFormat from "dayjs/plugin/localizedFormat";
import localizedFormat from 'dayjs/plugin/localizedFormat';

dayjs.extend(relativeTime);
dayjs.extend(localizedFormat);
Expand Down

0 comments on commit b6bf4d0

Please sign in to comment.