Update form_sidebar.js

make follow and unfollow translatable
This commit is contained in:
Fisher Yu 2021-02-15 23:28:15 +08:00 committed by GitHub
parent a9763ae9e0
commit 1f2c655853
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,7 +210,7 @@ frappe.ui.form.Sidebar = class {
if (follow == null) {
follow = this.frm.get_docinfo().is_document_followed;
}
this.follow_button.text(follow ? "Unfollow" : "Follow");
this.follow_button.text(follow ? __("Unfollow") : __("Follow"));
}
refresh_like() {