Skip to content

Commit

Permalink
PP-5015 - rejig and clean up function
Browse files Browse the repository at this point in the history
  • Loading branch information
jonheslop committed Mar 27, 2019
1 parent 325e67e commit bac9f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/pay-translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
const i18n = require('i18n')

module.exports = function payGetTranslation (req, res, next) {
res.locals.__p = res.__p = function () {
res.locals.__p = function safelyTranslateKeys () {
const translation = i18n.__.apply(req, arguments)
if (arguments[0] === translation) {
throw new Error(`Template is missing a translation with ID: ${translation}`)
Expand Down

0 comments on commit bac9f95

Please sign in to comment.