[ADF-4680] Add documentation for dateValues in app.config.json (#4859)

* [ADF-4680] Add documentation for dateValues in app.config.json

* Improve English

* Create new localization file

* Update localized-date.pipe.md

* Update card-view-datetimeitem.model.ts

* Update localized-date.pipe.md
This commit is contained in:
davidcanonieto
2019-06-18 15:17:48 +01:00
committed by Eugenio Romano
parent e64eee90af
commit 25446b5ba3
5 changed files with 97 additions and 28 deletions

View File

@@ -154,31 +154,6 @@ component's `.ts` file:
<!-- {% endraw %} -->
## Using the localized date pipe
Date values are also localized in your ADF app. By default they are localized to en-US, although you can easily change this by adding the localization files provided by Angular.
If you want to use a different locale simply add the locale file for your region in your `app.module.ts`.
<!-- {% raw %} -->
import { registerLocaleData } from '@angular/common';
import localeFr from '@angular/common/locales/fr';
registerLocaleData(localeFr);
<!-- {% endraw %} -->
Usage of the [localized date pipe](../core/pipes/localized-date.pipe.md).
<!-- {% raw %} -->
{{ date | adfLocalizedDate: format : locale }}
<!-- {% endraw %} -->
Find more info about this in the [Angular sDocs](https://angular.io/guide/i18n#setting-up-the-locale-of-your-app).
## Adding and replacing messages
The built-in translations certainly won't cover everything you will need for