Revert "fix: added api to get translation messages for portal apps"
This commit is contained in:
parent
ccb4afaa11
commit
09bbb31556
1 changed files with 0 additions and 10 deletions
|
|
@ -132,16 +132,6 @@ def get_messages_for_boot():
|
|||
return get_all_translations(frappe.local.lang)
|
||||
|
||||
|
||||
@frappe.whitelist(allow_guest=True)
|
||||
def get_app_translations():
|
||||
if frappe.session.user != "Guest":
|
||||
language = frappe.db.get_value("User", frappe.session.user, "language")
|
||||
else:
|
||||
language = frappe.db.get_single_value("System Settings", "language")
|
||||
|
||||
return get_all_translations(language)
|
||||
|
||||
|
||||
def get_all_translations(lang: str) -> dict[str, str]:
|
||||
"""Load and return the entire translations dictionary for a language from apps + user translations.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue