Skip to content

Commit 6f076ed

Browse files
mmalerbawagnermaciel
authored andcommitted
docs(material/datepicker): import used locales in example (#22784)
(cherry picked from commit 70c050c)
1 parent 8c60286 commit 6f076ed

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
@@ -73,6 +73,8 @@ ROLLUP_GLOBALS = {
7373
# Third-party libraries.
7474
"kagekiri": "kagekiri",
7575
"moment": "moment",
76+
"moment/locale/fr": "moment.locale.fr",
77+
"moment/locale/ja": "moment.locale.ja",
7678
"protractor": "protractor",
7779
"rxjs": "rxjs",
7880
"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)