Skip to content

Commit

Permalink
Make translate get synchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebouget committed May 2, 2024
1 parent 5451a29 commit 9408222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/core/services/file-system.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class FileSystemService {
properties: ['openFile'],
filters: [
{
name: this.translate.get('GLOBAL.FILES'),
name: this.translate.instant('GLOBAL.FILES'),
extensions: associationFiles,
},
],
Expand Down Expand Up @@ -104,7 +104,7 @@ export class FileSystemService {
}
})
.catch((error) => {
console.warn(this.translate.get('SNACKS.OPEN_FILE_ERROR'), error);
console.warn(this.translate.instant('SNACKS.OPEN_FILE_ERROR'), error);
this.fileLoaderDatas.isLoadingDatas = false;
});
}
Expand Down

0 comments on commit 9408222

Please sign in to comment.