Skip to content

Commit

Permalink
fix(translation): adapter now tolerant of missing translation function (
Browse files Browse the repository at this point in the history
  • Loading branch information
sr258 authored Apr 13, 2020
1 parent 57ea24e commit 5520078
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/adapters/expressController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,16 @@ export default class ExpressH5PController {
): string =>
`${
installed
? req.t('installed-libraries', { count: installed })
? req.t
? req.t('installed-libraries', { count: installed })
: `Installed ${installed} libraries.`
: ''
} ${
updated ? req.t('updated-libraries', { count: updated }) : ''
updated
? req.t
? req.t('updated-libraries', { count: updated })
: `Updated ${updated} libraries.`
: ''
}`.trim();

switch (action) {
Expand Down

0 comments on commit 5520078

Please sign in to comment.