notifyViaBrowser supports translate title/body content with parameters

This commit is contained in:
MaysWind
2022-11-05 19:16:36 +08:00
parent e095a191ed
commit 844d237594

View File

@@ -109,12 +109,16 @@
});
},
notifyViaBrowser: function (title, content, options) {
if (!options) {
options = {};
}
if (title) {
title = ariaNgLocalizationService.getLocalizedText(title);
title = ariaNgLocalizationService.getLocalizedText(title, options.titleParams);
}
if (content) {
content = ariaNgLocalizationService.getLocalizedText(content);
content = ariaNgLocalizationService.getLocalizedText(content, options.contentParams);
}
return notifyViaBrowser(title, content, options);