From aee33c5bbe936c7e5c8d04ff43a7f27ec9b2a0a4 Mon Sep 17 00:00:00 2001 From: Shrihari Mahabal Date: Fri, 27 Mar 2026 12:47:35 +0530 Subject: [PATCH] fix: add build version to translation version --- frappe/translate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/translate.py b/frappe/translate.py index 8c2008b6f5..682e0ca8d3 100644 --- a/frappe/translate.py +++ b/frappe/translate.py @@ -19,7 +19,7 @@ from csv import reader, writer import frappe from frappe.query_builder import DocType, Field -from frappe.utils import cstr, get_bench_path, is_html, strip, strip_html_tags, unique +from frappe.utils import cstr, get_bench_path, get_build_version, is_html, strip, strip_html_tags, unique from frappe.utils.caching import http_cache REPORT_TRANSLATE_PATTERN = re.compile('"([^:,^"]*):') @@ -259,7 +259,7 @@ def get_translation_version() -> str: if version is None: version = frappe.generate_hash(length=8) frappe.cache.set_value(TRANSLATION_VERSION_KEY, version) - return version + return f"{version}_{get_build_version()}" def change_translation_version():