mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
template: problem_detail
This commit is contained in:
1 parent
2e23d05a59
commit
ffa193b5dd
43 files changed
+265
-242
No files matched your search
+2
-2
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user