Skip to content

Commit

Permalink
Fix Issues #293 and #294
Browse files Browse the repository at this point in the history
With the COVID-19 outbreak, the banners and final messages needed to be updated
so that users were aware that getasmokealarm was under a temporary hiatus.

This also exposed a bug in the text message code that it wasn't using
internationalization correctly, with a hardcoded english message commented
out.
  • Loading branch information
Deployment Role Account committed Mar 19, 2020
1 parent 6639333 commit 879ce1a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion locales/en.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion locales/es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions views/sms/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ exports.respond = function(req, res) {
var constructFinalText = function (outcome, request) {
var twiml = new twilio.TwimlResponse();
if (outcome) {
msg = __("Thank you for your smoke alarm request! Your request number is %s.");
msg = __("Thank_request_text");
msg = msg.replace('%s', request.public_id);
msg += __(" To contact your local Red Cross about this request, call 1-800-RED-CROSS (1-800-733-2767). We will be in touch with you to schedule an installation.");
// Commented out because we don't have a spanish version, and with the COVID crisis, is not important
//msg += __(" To contact your local Red Cross about this request, call 1-800-RED-CROSS (1-800-733-2767). We will be in touch with you to schedule an installation.");
}
else {
if (request.county) {
Expand Down

0 comments on commit 879ce1a

Please sign in to comment.