Add auto bug report for missing locale string
This commit is contained in:
@@ -17,6 +17,9 @@ function initLocaleScript() {
|
|||||||
|
|
||||||
function getLocaleString(client, stringName, ...args) {
|
function getLocaleString(client, stringName, ...args) {
|
||||||
let tempString = getRawLocaleString(stringName, getPlayerLocaleName(client));
|
let tempString = getRawLocaleString(stringName, getPlayerLocaleName(client));
|
||||||
|
if(tempString == "") {
|
||||||
|
submitBugReport(client, `(AUTOMATED REPORT) Locale string "${stringName}" is missing for "${getPlayerLocaleName(client)}"`);
|
||||||
|
}
|
||||||
|
|
||||||
tempString = replaceColoursInMessage(tempString);
|
tempString = replaceColoursInMessage(tempString);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user