Skip to content

Commit

Permalink
Upgrade version
Browse files Browse the repository at this point in the history
  • Loading branch information
robisim74 committed Apr 14, 2020
1 parent e4ebf90 commit 884f129
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,17 @@ const routes: Routes = [
}
];
```
Always import the modules you need:
```TypeScript
@NgModule({
declarations: [LazyComponent],
imports: [
...
L10nTranslationModule
]
})
export class LazyModule { }
```

### Caching
Enable caching during configuration if you want to prevent reloading of the already loaded translation data:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-l10n",
"version": "9.1.0",
"version": "9.2.0",
"scripts": {
"ng": "ng",
"start": "ng serve angular-l10n-app --open",
Expand Down
4 changes: 2 additions & 2 deletions projects/angular-l10n-app/src/app/lazy/lazy.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { L10nTranslationModule, L10nIntlModule, L10nValidationModule } from 'ang
CommonModule,
LazyRoutingModule,
L10nTranslationModule,
L10nIntlModule,
L10nValidationModule
// L10nIntlModule,
// L10nValidationModule
]
})
export class LazyModule { }
2 changes: 1 addition & 1 deletion projects/angular-l10n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-l10n",
"version": "9.1.0",
"version": "9.2.0",
"author": "Roberto Simonetti",
"description": "An Angular library to translate texts, dates and numbers",
"repository": {
Expand Down

0 comments on commit 884f129

Please sign in to comment.