commit 509cdf3ae7e876fe40c03e994eaef00509f616bb
parent 8c418d018af8eca4942786ec49409fda072c0d1e
Author: Dan Ballard <dan@mindstab.net>
Date: Tue, 24 Feb 2026 11:26:56 -0800
fixup! BB 42305: Add script to combine translation files across versions.
Fix lints.
Diffstat:
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/tools/base_browser/l10n/combine-translation-versions.py b/tools/base_browser/l10n/combine-translation-versions.py
@@ -185,9 +185,12 @@ class BrowserBranch:
# plain fetches.
fetch_args = ("--depth=1", "--filter=blob:none")
git_run(["fetch", *fetch_args, "origin", self.name])
- self._file_paths = git_lines(
- ["ls-tree", "-r", "--format=%(path)", self._ref]
- )
+ self._file_paths = git_lines([
+ "ls-tree",
+ "-r",
+ "--format=%(path)",
+ self._ref,
+ ])
matching = [
path
@@ -333,7 +336,7 @@ for file_dict in json.loads(args.files):
name,
content,
branding_file.content,
- f'{version_dict["name"]} Release.',
+ f"{version_dict['name']} Release.",
include_ids,
version_dict["suffix"],
)
@@ -371,16 +374,14 @@ for file_dict in json.loads(args.files):
elif legacy_branch:
logger.info(f"Excluding legacy branch for {name}")
- files_list.append(
- {
- "name": name,
- # If "directory" is unspecified, we place the file directly beneath
- # en-US/ in the translation repository. i.e. "".
- "directory": file_dict.get("directory", ""),
- "branch": file_dict["branch"],
- "content": content,
- }
- )
+ files_list.append({
+ "name": name,
+ # If "directory" is unspecified, we place the file directly beneath
+ # en-US/ in the translation repository. i.e. "".
+ "directory": file_dict.get("directory", ""),
+ "branch": file_dict["branch"],
+ "content": content,
+ })
ci_commit = os.environ.get("CI_COMMIT_SHA", "")