mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-07-21 03:48:43 +00:00
28 lines
593 B
JavaScript
28 lines
593 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
// @TODO Load the actual strings from webconsole.properties instead.
|
|
class L10n {
|
|
getStr(str) {
|
|
switch (str) {
|
|
case "level.error":
|
|
return "Error";
|
|
case "consoleCleared":
|
|
return "Console was cleared.";
|
|
case "webConsoleXhrIndicator":
|
|
return "XHR";
|
|
case "webConsoleMoreInfoLabel":
|
|
return "Learn More";
|
|
}
|
|
return str;
|
|
}
|
|
|
|
getFormatStr(str) {
|
|
return this.getStr(str);
|
|
}
|
|
}
|
|
|
|
module.exports = L10n;
|