chore: remove unused method (#29163)

This commit is contained in:
Raffael Meyer 2025-01-14 22:39:09 +01:00 committed by GitHub
parent c72e91f465
commit 3b7df82a80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -924,18 +924,6 @@ def update_translations_for_source(source=None, translation_dict=None):
return translation_records
@frappe.whitelist()
def get_translations(source_text):
if is_html(source_text):
source_text = strip_html_tags(source_text)
return frappe.db.get_list(
"Translation",
fields=["name", "language", "translated_text as translation"],
filters={"source_text": source_text},
)
@frappe.whitelist(allow_guest=True)
def get_all_languages(with_language_name: bool = False) -> list:
"""Return all enabled language codes ar, ch etc."""