Skip to content

Commit

Permalink
don't write per-lang translation files
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Oct 18, 2023
1 parent 3206d07 commit 6528406
Show file tree
Hide file tree
Showing 71 changed files with 8 additions and 47,333 deletions.
12 changes: 8 additions & 4 deletions do/trans_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,20 @@ func downloadTranslations() bool {
curr := readFileMust(path)
if bytes.Equal(d, curr) {
fmt.Printf("Translations didn't change\n")
//TODO: for now to force splitting into per-lang files
// return false
return false
}

// disable per-lang files for now
if false {
splitIntoPerLangFiles(d)
}

writeFileMust(path, d)
// TODO: save ~400k in uncompressed binary by
// saving as gzipped and embedding that in the exe
//u.WriteFileGzipped(translationsTxtPath+".gz", d)
splitIntoPerLangFiles(d)
writeFileMust(path, d)
logf(ctx(), "Wrote %s of size %d\n", path, len(d))

printSusTranslations(d)
return false
}
Expand Down
Loading

0 comments on commit 6528406

Please sign in to comment.