mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 02:14:12 +01:00
Add toJSON method to lazy localized strings.
This commit is contained in:
@@ -1111,7 +1111,7 @@ var Buffer = Module("Buffer", {
|
||||
|
||||
// Ctrl-g single line output
|
||||
if (!verbose) {
|
||||
let file = this.win.location.pathname.split("/").pop() || String(_("buffer.noName"));
|
||||
let file = this.win.location.pathname.split("/").pop() || _("buffer.noName");
|
||||
let title = this.win.document.title || _("buffer.noTitle");
|
||||
|
||||
let info = template.map(
|
||||
|
||||
@@ -30,7 +30,8 @@ var Messages = Module("messages", {
|
||||
return self.get(message);
|
||||
}),
|
||||
valueOf: function valueOf() this.message,
|
||||
toString: function toString() this.message
|
||||
toString: function toString() this.message,
|
||||
toJSON: function toJSON() this.message
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user