From bef27254c5ebb6922c1d63d61edfd03cb0dff65b Mon Sep 17 00:00:00 2001
From: echicken <echicken@bbs.electronicchicken.com>
Date: Thu, 8 Oct 2020 00:17:38 -0400
Subject: [PATCH] Get locale string without write

---
 webv4/lib/locale/en_us.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/webv4/lib/locale/en_us.js b/webv4/lib/locale/en_us.js
index 7a8c8dd2c1..8e6746bed9 100644
--- a/webv4/lib/locale/en_us.js
+++ b/webv4/lib/locale/en_us.js
@@ -63,6 +63,10 @@ EN_US.prototype.group_numbers = function (n) {
     ).split('').reverse().join('') + (d > -1 ? n.substring(d) : '');
 }
 
+EN_US.prototype.get = function (str, sec) {
+    return this.strings[sec || this.section][str];
+}
+
 EN_US.prototype.write = function (str, sec) {
     write(this.strings[sec || this.section][str]);
 }
-- 
GitLab