Skip to content

Commit

Permalink
Fix type annotations and bump package version to 16.0.1
Browse files Browse the repository at this point in the history
Removed redundant type annotations for `prefix` and `suffix` in `TranslateHttpLoader` to improve code clarity. Updated the package version to 16.0.1 to reflect this change.
  • Loading branch information
CodeAndWeb committed Dec 19, 2024
1 parent d31e18b commit 3e0ae16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/http-loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngx-translate/http-loader",
"version": "16.0.0",
"version": "16.0.1",
"description": "http loader for dynamically loading translation files for @ngx-translate/core",
"keywords": [
"@ngx-translate",
Expand Down
4 changes: 2 additions & 2 deletions projects/http-loader/src/lib/http-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {Observable} from 'rxjs';
export class TranslateHttpLoader implements TranslateLoader {
constructor(
private http: HttpClient,
@Inject(String) public prefix:string = "/assets/i18n/",
@Inject(String) public suffix:string = ".json"
@Inject(String) public prefix = "/assets/i18n/",
@Inject(String) public suffix = ".json"
)
{}

Expand Down

0 comments on commit 3e0ae16

Please sign in to comment.