Skip to content

Commit

Permalink
Fix catalog vocabulary.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Dec 13, 2024
1 parent 124fc15 commit 6d00971
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
- Fix supported languages endpoint @robgietema
- Fix site logo @robgietema
- Make it compatible with Volto without special settings @davisagli
- Fix catalog vocabulary @robgietema

### Internal

Expand Down
13 changes: 13 additions & 0 deletions src/models/catalog/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,17 @@ export class Catalog extends Model {
trx,
);
}

/**
* Returns vocabulary data.
* @method getVocabulary
* @param {Object} req Request object.
* @returns {Object} JSON object.
*/
getVocabulary(req) {
return {
title: req.i18n(this.Title),
token: this.Title,
};
}
}

0 comments on commit 6d00971

Please sign in to comment.