Skip to content

Commit

Permalink
fix(filter): add a new key for translation
Browse files Browse the repository at this point in the history
* Adds owning_library key to translate library name on filter name
  translation service.

Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr committed Apr 9, 2024
1 parent c4e3726 commit 9006970
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/admin/src/app/service/bucket-name.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export class BucketNameService implements IBucketNameService {
const claims_label = Number(value) < 2 ? _('{{count}} claim') : _('{{count}} claims');
return of(this.translateService.instant(claims_label, { count: value }));
case 'language': return of(this.translateService.instant(`lang_${value}`));
case 'owning_library':
case 'transaction_library':
case 'library': return this.libraryApiService.getByPid(value).pipe(map(record => record.name));
case 'organisation': return this.organisationApiService.getByPid(value).pipe(map(record => record.name));
Expand Down

0 comments on commit 9006970

Please sign in to comment.