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 986ba7f commit 3e1defd
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 @@ -60,7 +60,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 @@ -106,7 +106,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 3e1defd

Please sign in to comment.