Browse Source

fix: set translatable on show alert (#16427)

version-14
HENRY Florian 3 years ago
committed by GitHub
parent
commit
d76684ed41
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/public/js/frappe/ui/theme_switcher.js

+ 1
- 1
frappe/public/js/frappe/ui/theme_switcher.js View File

@@ -124,7 +124,7 @@ frappe.ui.ThemeSwitcher = class ThemeSwitcher {
toggle_theme(theme) {
this.current_theme = theme.toLowerCase();
document.documentElement.setAttribute("data-theme-mode", this.current_theme);
frappe.show_alert("Theme Changed", 3);
frappe.show_alert(__("Theme Changed"), 3);

frappe.xcall("frappe.core.doctype.user.user.switch_theme", {
theme: toTitle(theme)


Loading…
Cancel
Save