Update style of i18n, pull it in via preload instead of .html

This commit is contained in:
Scott Nonnenberg 2018-03-23 18:37:32 -07:00
parent 1ad2b080c8
commit f86a6ef752
No known key found for this signature in database
GPG key ID: 5F82280C35134661
7 changed files with 47 additions and 40 deletions

View file

@ -5,15 +5,6 @@
'use strict';
window.Whisper = window.Whisper || {};
moment.updateLocale(i18n.getLocale(), {
relativeTime : {
s: i18n('timestamp_s') || 'now',
m: i18n('timestamp_m') || '1 minute',
h: i18n('timestamp_h') || '1 hour'
}
});
moment.locale(i18n.getLocale());
Whisper.TimestampView = Whisper.View.extend({
initialize: function(options) {
extension.windows.onClosed(this.clearTimeout.bind(this));