From 4066223d7275483848285231c35e40cbc1243406 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 25 Dec 2015 18:16:38 -0800 Subject: [PATCH] i18n SocketView // FREEBIE --- _locales/en/messages.json | 3 +++ js/views/inbox_view.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 92fe83a1..10155ee9 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1,4 +1,7 @@ { + "disconnected": { + "message": "Disconnected" + }, "submitDebugLog": { "message": "Submit debug log" }, diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index 182d5e45..9a6a6400 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -25,7 +25,7 @@ break; case WebSocket.CLOSED: className = 'closed'; - message = 'Disconnected'; + message = i18n('disconnected'); break; } if (!this.$el.hasClass(className)) {