[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:
Eugenio Romano
2019-06-17 11:46:28 +01:00
committed by GitHub
parent 64a5a98dc6
commit 5589120ed7
4 changed files with 133 additions and 2 deletions

View File

@@ -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);
```