Skip to content

Commit

Permalink
feat(PWA): Add translations to bootinfo
Browse files Browse the repository at this point in the history
(cherry picked from commit 3712878)

# Conflicts:
#	hrms/www/hrms.py
  • Loading branch information
cogk authored and mergify[bot] committed Oct 23, 2024
1 parent d24ec2c commit 4a5ecca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hrms/www/hrms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import frappe
from frappe.boot import load_translations

no_cache = 1

Expand All @@ -20,9 +21,18 @@ def get_context_for_dev():


def get_boot():
<<<<<<< HEAD
return frappe._dict(
=======
bootinfo = frappe._dict(
>>>>>>> 371287843 (feat(PWA): Add translations to bootinfo)
{
"site_name": frappe.local.site,
"push_relay_server_url": frappe.conf.get("push_relay_server_url") or "",
}
)

bootinfo.lang = frappe.local.lang
load_translations(bootinfo)

return bootinfo

0 comments on commit 4a5ecca

Please sign in to comment.