Skip to content

Commit

Permalink
replaceTranslations script
Browse files Browse the repository at this point in the history
  • Loading branch information
snadrus committed Oct 11, 2024
1 parent 982dc75 commit a1036a4
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// b/c GPT4o & Claude are too dumb to just translate value="" fields.
// (it'll get better and this will be useless then.)

// This replaces specific fields in an XML file with translations.
// I used it to modify only the parts of the .drawio files for zh
// by using an xml tool to extract fields needing translation,
// formatting them as JS with simple CLI tools, using GPT tranlation,
// Then using this to modify only the value="" fields with their translation.
//
// Note, this was manual. The first portion should be wrapped-up in a script
// if we want to do this on a regular basis.

package main

import (
Expand Down

0 comments on commit a1036a4

Please sign in to comment.