How to to tmx file from two sets of JSON files

23 views
Skip to first unread message

lv

unread,
Mar 10, 2025, 12:28:53 PMMar 10
to okapi-users
Hello everyone,

I am working on translating a game's JSON files. I have used a Python script to access AI for basic translation of the content. After some consideration, I decided to import the translations into OmegaT for verification. I have managed to generate an OmegaT project from the JSON files using Okapi's functionality, and now I'm figuring out how to incorporate my pre-translated content.

Currently, I have two sets of JSON files: one containing the original texts and another containing the translations. The key paths in both sets are identical.

Initially, I tried ID alignment, but this approach did not take filenames into account during the process, leading to numerous errors. The output files seem to have jumbled content as well.

Chase Tingley

unread,
Mar 10, 2025, 7:01:40 PMMar 10
to lv, okapi-users
Hi,

I want to make sure I understand -- are you trying to produce an aligned TMX or XLIFF?  It sounds like you already have the translations in the JSON format.

--
You received this message because you are subscribed to the Google Groups "okapi-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to okapi-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/okapi-users/14c7ed1b-2da5-4862-b8e0-a8fc0391b1a9n%40googlegroups.com.

lv

unread,
Mar 11, 2025, 5:31:44 AMMar 11
to okapi-users

yes, I have. But those translations are done by AI. I want to check them one by one in omegat. So I want to merge json files to a omegat project.
And I think the failed align is caused by file path not equal in two input list. But move them by hand, using the move up and down is a bit too troublesome. Is there a way to sort those files in order, or is there apipeline to sort the input list?
Reply all
Reply to author
Forward
0 new messages