How an importer tells Brazilian from European Portuguese
python
dev.to
Our reading app serves Portuguese as Brazilian Portuguese, everywhere: você, arquivo, cadastro, café da manhã. The book generator that feeds the catalogue did not get that memo. Left to itself it wrote European Portuguese, and 29 public books had to be converted to Brazilian on the production database. The generator's original bundles were still lying around, so a single re-upload of an old file would have quietly put the European text back. The fix is a gate in the importer: a pt book that con