Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/apps/system/test/unit/mock_l10n.js
blob: 35b01d83a128f2b7d6d5bf4f69d08ac574dff585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict';

var MockL10n = {
  get: function get(key, params) {
    if (params) {
      return key + JSON.stringify(params);
    }
    return key;
  },
  DateTimeFormat: function() {}
};

MockL10n.DateTimeFormat.prototype = {
  localeFormat: function mockLocaleFormat(time, strFormat) {
    return '' + time;
  }
};