A billion is not a billion in Spanish: catching 1000x number bugs in multilingual AI video
Originally published on the ContentRoof Engineering Lab. When a ContentRoof video is rebuilt in another language, nothing is dubbed over old footage. Every label, number, chart, and caption is generated natively in that
Originally published on the ContentRoof Engineering Lab.
When a ContentRoof video is rebuilt in another language, nothing is dubbed over old footage. Every label, number, chart, and caption is generated natively in that language.
That sounds clean until you hit numbers. Numbers are the one place where an otherwise fluent translation can quietly be off by a factor of a thousand.
Dubbing keeps the pixels
Automatic dubbing is free on YouTube now, and plenty of tools can clone a voice into dozens of languages. What none of them can change is the pixels on screen. A chart labelled in English stays in English, and "3.5 million" stays "3.5 million" while the translated voice says something else.
Because ContentRoof videos are generated from structured data instead of baked pixels, we can rebuild the whole video natively. Words switch to the target language, numbers switch to local formatting (110,25 in Spanish, ١١٠٫٢٥ in Arabic), right-to-left layouts flip for Arabic and Urdu, and the voice matches the language.
That also means we own every number rendered on screen.
Where translation fails quietly
Most European languages have a word that looks just like English "billion" and means something a thousand times bigger.
| Language | 10^9 (thousand million) | 10^12 (million million) |
|---|---|---|
| English | billion | trillion |
| Spanish | mil millones | billon |
| French | milliard | billion |
| German | Milliarde | Billion |
| Italian | miliardo | bilione |
| Portuguese (Brazil) | bilhao | trilhao |
| Russian | milliard | trillion |
| Arabic | مليار | تريليون |
If a translation writes 86 billones de neuronas, it just told a Spanish viewer that the human brain has 86 trillion neurons instead of 86 billion. The sentence reads smoothly. Most listeners will not catch it, and a 2025 machine translation study (arXiv 2501.04927) found error rates up to 20% on million and billion scale words.
Decimal points fail in the same quiet way. In German, a dot separates thousands, so copying "110.25" from English makes it read like 11,025. The German way to write 110.25 is "110,25".
A checker that reads numbers in every language
To stop bad numbers from ever reaching a rendered video, I built a checker that parses every number in a translated narration in its own language and compares it against the original English script.
The parser handles local digit separators, Arabic-Indic and Devanagari digits, long-scale false friends, compound forms like mil millones, phrases like "half a million", small numbers written as words (tres, drei, ثلاثة), and Arabic duals. Ordinals like "ninth century" are ignored. If a number is missing or shifted, the scene is flagged so an animated explanation never displays a figure that disagrees with the voice.
I tested it by taking an English paragraph with five numbers, translating it cleanly into six languages, and planting one error per copy:
| Planted error | Language | What the checker flagged |
|---|---|---|
| 86 billones for 86 billion | Spanish | missing 86 billion, found 86 billones |
| 86 Billionen for 86 billion | German | missing 86 billion, found 86 Billionen |
| 86 billions for 86 billion | French | missing 86 billion, found 86 billions |
| 86 bilioni for 86 billion | Italian | missing 86 billion, found 86 bilioni |
| 86 مليون (million) for billion | Arabic | missing 86 billion, found 86 million |
110,52 for 110.25
|
Spanish | missing 110.25, found 110.52 |
110.25 left unlocalized |
German | missing 110.25, found 11,025 |
| Pakistan's 240 million dropped | Portuguese | missing 240 million |
What the test showed
- 8 of 8 planted errors caught.
- 2 of 2 correct control translations left clean (including one written entirely in Arabic-Indic digits).
- 0 of 23 real translations (around 250 scenes total) triggered a false alarm.
- 20 of 20 animated explainer scenes carried cleanly into Spanish, German, French, and Arabic.
Getting to zero false alarms meant fixing bugs in my checker rather than the translations. The first version compared the voice's spelled-out text instead of screen digits, double-counted English "86 billion", and tripped over "ninth century" vs "9. Jahrhundert".
On the first run of carrying animated scenes across languages, the checker also dropped 8 of 20 scenes. It was actually doing its job: the translations spelled "3" out as tres and ثلاثة, so the checker refused to render a "3" on screen that it could not match in the narration. Teaching the parser spelled-out number words fixed all 8.
What this still does not catch
The checker only verifies numbers, not meaning. If a translation keeps every digit right but swaps what the sentence is claiming, it will still pass. And while Hindi, Urdu, Polish, and Russian scale words are in the parser, they were not part of this specific planted-error run.
Still, for automated multilingual video generation, catching silent 1000x scale errors before a single frame renders has been worth every line of parser code. If you want to see how the rebuilt videos look across languages, you can test it on ContentRoof.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.