Skip to content

Instantly share code, notes, and snippets.

@devZdev
Created February 28, 2017 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devZdev/b19ccfb3855584090497cb5c3af2e24a to your computer and use it in GitHub Desktop.
Save devZdev/b19ccfb3855584090497cb5c3af2e24a to your computer and use it in GitHub Desktop.
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