mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-24 14:31:41 +00:00
* [ADF-4342] Date Format defined in app config * [ADF-4342] Create localized pipe and centralize date format * Add unit test for new date pipe * Add info internationalization docs * Fix lining * Fix linting * Fix date pipe unit test * [ADF-4342] Add supported language files * Fix e2e tests
33 lines
1.0 KiB
HTML
33 lines
1.0 KiB
HTML
<div class="adf-date-pipes-container">
|
|
<h2>Date Pipes</h2>
|
|
|
|
<mat-form-field class="adf-date-field">
|
|
<input matInput
|
|
placeholder="Format"
|
|
[(ngModel)]="format">
|
|
</mat-form-field>
|
|
|
|
<mat-form-field class="adf-date-field">
|
|
<mat-select placeholder="Locale dropdown" [(ngModel)]="locale">
|
|
<mat-option *ngFor="let language of languages" [value]="language.key">
|
|
{{language.label}}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<h3>AdfLocalizedDate Pipe - Default</h3>
|
|
<div>{{ today | adfLocalizedDate }} </div>
|
|
<br>
|
|
<h3>AdfLocalizedDate Pipe - Custom format</h3>
|
|
<div>{{ today | adfLocalizedDate : format }} </div>
|
|
<br>
|
|
<h3>AdfLocalizedDate Pipe - Custom format and locale</h3>
|
|
<div>{{ today | adfLocalizedDate : format : locale }} </div>
|
|
<br>
|
|
<h3>AdfTimeAgo Pipe</h3>
|
|
<div>{{ today | adfTimeAgo }} </div>
|
|
<br>
|
|
<h3>AdfTimeAgo Pipe - Custom locale</h3>
|
|
<div>{{ today | adfTimeAgo : locale}} </div>
|
|
</div>
|