Skip to content

Commit

Permalink
Also map id
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Sep 15, 2024
1 parent 9ff5194 commit 13a4403
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion css_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __get_target_steam_version(data : dict) -> str|None:
target_steam_version = local_steam_version
else:
target_steam_version = None
prev = "999999999999"
prev = "9999999999999"
for i, (k, v) in list(enumerate(data['versions'].items()))[::-1]:
if v == local_steam_version:
if int(prev) > int(target_steam_version) and int(k) < int(target_steam_version):
Expand Down Expand Up @@ -80,6 +80,7 @@ def generate_translations_from_local_file() -> dict[str, str]:
translations[class_mapping_value] = class_target

translations[f"{module_name}_{class_name}"] = class_target
translations[f"{module_id}_{class_name}"] = class_target

Log(f"Loaded {len(translations)} css translations from local file in {time.time() - timer:.0f}s")
return translations
Expand Down

0 comments on commit 13a4403

Please sign in to comment.