Skip to content

Commit

Permalink
Refactor variable declaration and clean up imports.
Browse files Browse the repository at this point in the history
Replaced `let` with `const` for variable declaration to ensure immutability. Removed unused `Router` import from the test file to optimize dependency management.
  • Loading branch information
CodeAndWeb committed Dec 19, 2024
1 parent 3e0ae16 commit 72e9971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/ngx-translate/src/lib/translate.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
TranslationChangeEvent, TranslationObject, Translation, provideTranslateService, TranslatePipe, TranslateModule
} from "../public-api";
import {Component} from "@angular/core";
import {Router, RouterOutlet} from "@angular/router";
import {RouterOutlet} from "@angular/router";


let translations: TranslationObject = {"TEST": "This is a test"};
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-translate/src/lib/translate.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export class TranslateService {
{
const result: TranslationObject = {};
for (const key in translations) {
let res = this.runInterpolation(translations[key], interpolateParams);
const res = this.runInterpolation(translations[key], interpolateParams);
if(res !== undefined)
{
result[key] = res;
Expand Down

0 comments on commit 72e9971

Please sign in to comment.