Skip to content

Commit 0f1dfd8

Browse files
authored
[rdar://109731672] feat: add support for dateTimeFormats in VueI18n (#678)
1 parent cd09da8 commit 0f1dfd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/setup-utils/SwiftDocCRenderi18n.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ import VueI18n from 'vue-i18n';
1212
import * as lang from 'theme/lang/index.js';
1313

1414
export default function createi18nInstance(config = lang) {
15-
const { defaultLocale, messages } = config;
15+
const { defaultLocale, messages, dateTimeFormats = {} } = config;
1616

1717
const i18n = new VueI18n({
18+
dateTimeFormats,
1819
locale: defaultLocale,
1920
fallbackLocale: defaultLocale,
2021
messages,

0 commit comments

Comments
 (0)