feat: add extractor for setup wizard txt files

This commit is contained in:
barredterra
2024-08-17 01:50:55 +02:00
parent 1bdeddcb04
commit 60aaeefd70
2 changed files with 5 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
def extract(fileobj, *args, **kwargs):
"""Split file into lines and yield one translation unit per line."""
for line_no, line in enumerate(fileobj.readlines()):
yield line_no + 1, "_", line.decode().strip(), []