Skip to content

Commit 70c050c

Browse files
authored
docs(material/datepicker): import used locales in example (#22784)
1 parent a57ea9b commit 70c050c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

rollup-globals.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ ROLLUP_GLOBALS = {
7676
# Third-party libraries.
7777
"kagekiri": "kagekiri",
7878
"moment": "moment",
79+
"moment/locale/fr": "moment.locale.fr",
80+
"moment/locale/ja": "moment.locale.ja",
7981
"protractor": "protractor",
8082
"rxjs": "rxjs",
8183
"rxjs/operators": "rxjs.operators",

src/components-examples/material/datepicker/datepicker-locale/datepicker-locale-example.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {
55
MAT_MOMENT_DATE_ADAPTER_OPTIONS,
66
} from '@angular/material-moment-adapter';
77
import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE} from '@angular/material/core';
8+
import 'moment/locale/ja';
9+
import 'moment/locale/fr';
810

911
/** @title Datepicker with different locale */
1012
@Component({

0 commit comments

Comments
 (0)