mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4657] Upgrade Guide (#4855)
* fix documentation missing params * fix index * fix aftere release * fix aftere review * upgrade guide from 3.2.0 to 3.3.0 * upgrade guide from 3.2.0 to 3.3.0
This commit is contained in:
@@ -31,4 +31,20 @@ Converts a date to a given format and locale.
|
||||
|
||||
The pipe takes a date and formats it and localizes it so the date is displayed in the proper format for the region. It uses the [Angular Date Pipe](https://angular.io/api/common/DatePipe#custom-format-options) so all the pre-defined and custom formats can be used.
|
||||
|
||||
When localizing a date, you will need to add the specific locale file for your region in order to use it. Read more about internationalization [here](https://angular.io/guide/i18n#i18n-pipes).
|
||||
To localize the dates in your application, you will need to add the specific locale file for your region in order to use it. Read more about internationalization [here](https://angular.io/guide/i18n#i18n-pipes).
|
||||
|
||||
If you want add the japanese date localization in your ADF app you can add in your ```app.module.ts```:
|
||||
|
||||
```typescript
|
||||
import { AppConfigService, TRANSLATION_PROVIDER, DebugAppConfigService, CoreModule, CoreAutomationService } from '@alfresco/adf-core';
|
||||
|
||||
.....
|
||||
.....
|
||||
|
||||
import { registerLocaleData } from '@angular/common';
|
||||
import localeJa from '@angular/common/locales/ja';
|
||||
|
||||
registerLocaleData(localeJa);
|
||||
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user