Created
February 28, 2017 16:49
-
-
Save devZdev/b19ccfb3855584090497cb5c3af2e24a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Helper = { | |
exceptions: { | |
UNABLE_TO_MAKE_HOLD: "Unable to make hold" | |
}, | |
uxCopy: { | |
UNABLE_TO_MAKE_HOLD: "We can not make your hold at this time. Do Something." | |
}, | |
renderCopyForException: function(exception) { | |
var exceptionKey = _.findKey(Helper.exceptions, function(e){ | |
return e === exception; | |
}); | |
return Helper[uxCopy][exceptionKey]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment