Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
35
gaia/apps/costcontrol/test/unit/mock_moz_l10n.js
Executable file
35
gaia/apps/costcontrol/test/unit/mock_moz_l10n.js
Executable file
|
|
@ -0,0 +1,35 @@
|
|||
/* exported MockMozL10n */
|
||||
'use strict';
|
||||
|
||||
var MockMozL10n = {
|
||||
get: function get(key, args) {
|
||||
if (key === 'magnitude') {
|
||||
return args.value + ' ' + args.unit;
|
||||
}
|
||||
if (key === 'currency') {
|
||||
return args.value + ' ' + args.currency;
|
||||
}
|
||||
if (key === 'day-hour-format') {
|
||||
return args.day + ', ' + args.time;
|
||||
}
|
||||
if (key === 'hours-ago-short') {
|
||||
return args.value + 'h ago';
|
||||
}
|
||||
if (key === 'minutes-ago-short') {
|
||||
if (args.value !== 0) {
|
||||
return args.value + 'm ago';
|
||||
} else {
|
||||
return 'just now';
|
||||
}
|
||||
}
|
||||
if (key === 'firstDayOfTheWeek') {
|
||||
return '0';
|
||||
}
|
||||
return key;
|
||||
},
|
||||
ready: function(cb) {
|
||||
if (cb) {
|
||||
cb();
|
||||
}
|
||||
},
|
||||
};
|
||||
Loading…
Reference in a new issue