mirror of
https://github.com/mayswind/AriaNg.git
synced 2026-02-09 02:49:26 +08:00
notifyViaBrowser supports translate title/body content with parameters
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user