Skip to content

docs(datepicker): Add example for setLocale method #6224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 2, 2017

Conversation

SargoDarya
Copy link
Contributor

Add a usage example to show how the formatting locale of the datepicker can be be changed as that wasn't documented before.

Add a usage example to show how the formatting locale of the datepicker can be be changed as that wasn't documented before.
@SargoDarya SargoDarya requested a review from mmalerba as a code owner August 2, 2017 14:29
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 2, 2017
@@ -128,6 +128,24 @@ By default the datepicker will use the locale code from the `LOCALE_ID` injectio
export class MyApp {}
```

#### Setting/Switching the locale at runtime
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just leave this stuff as part of the previous heading

@@ -128,6 +128,24 @@ By default the datepicker will use the locale code from the `LOCALE_ID` injectio
export class MyApp {}
```

#### Setting/Switching the locale at runtime
It's possible to set/switch the locale at runtime using the setLocale method from
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

It's also possible to set the locale at runtime using the `setLocale` method of the `DateAdapter`.

@SargoDarya
Copy link
Contributor Author

Changed it.

@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Aug 2, 2017
@tinayuangao tinayuangao merged commit fa3cf12 into angular:master Aug 2, 2017
@SargoDarya SargoDarya deleted the patch-1 branch August 3, 2017 06:40
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants