template: problem_detail

This commit is contained in:
masnn committed 2020-04-03 22:37:30 +08:00
1 parent 2e23d05a59
commit ffa193b5dd
43 files changed
+265 -242

No files matched your search

+2 -2
View File
@@ -25,8 +25,8 @@ String.prototype.rawformat = function (object) {
let res = this.split('{@}');
return [res[0], object, res[1]];
};
String.prototype.translate = function (language = 'zh-CN') {
if (locales[language]) return this;
String.prototype.translate = function (language = 'zh_CN') {
if (locales[language]) return locales[language][this] || this;
else return this;
};