mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Eugenio Romano
parent
e64eee90af
commit
25446b5ba3
@@ -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
|
||||
|
Reference in New Issue
Block a user