mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: support mention notification
This commit is contained in:
1 parent
d66c161e66
commit
ca00dda575
14 files changed
+67
-24
No files matched your search
@@ -1,10 +1,7 @@
|
||||
import substitute from './substitute';
|
||||
|
||||
export default function i18n(str, ...params) {
|
||||
if (window.LOCALES && window.LOCALES[str]) {
|
||||
return substitute(window.LOCALES[str], params);
|
||||
}
|
||||
return substitute(str, params);
|
||||
return substitute(window.LOCALES?.[str] || str, params);
|
||||
}
|
||||
|
||||
window.Hydro.utils.i18n = i18n;
|
||||
Reference in new issue
Block a user