Skip to content

Commit

Permalink
Trim irrelevant path names from list-jar-translations
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune committed Mar 6, 2024
1 parent fc06b47 commit 9c4490a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gtnh_translation_compare/cmd/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ async def _list_jar_translations(self, modpack_path: Path) -> None:
lang_files: Sequence[Filetype] = modpack.lang_files(settings.TARGET_LANG)
print_yellow(f"There are {len(lang_files)} existing translations in mod jars")
for lang_file in lang_files:
print(lang_file.get_en_us_relpath())
print(Path(os.path.dirname(os.path.relpath(lang_file.get_en_us_relpath(), "resources"))).parent)

def list_jar_translations(self, modpack_path: str) -> None:
asyncio.run(self._list_jar_translations(Path(modpack_path)))
Expand Down

0 comments on commit 9c4490a

Please sign in to comment.