fix: only translate strings

This commit is contained in:
sokumon 2025-03-04 12:06:43 +05:30
parent c17311fbb0
commit aaa456c2ab

View file

@ -818,5 +818,6 @@ def translate_report_data(data):
for d in data:
if isinstance(d, dict):
for field, value in d.items():
d[field] = _(value)
if isinstance(value, str):
d[field] = _(value)
return data