I'm wondering if there is a programmatic way of detecting all instances of numbers on a web page (e.g. 1, 34, 558, 6, etc.) and convert them to equivalents in other languages of the site.
For example, if I have a bilingual site that has English and Arabic. On the English page there is a number "12345". It's coming from the database, so the numbers are stored as 12345 etc. in the database. Now, on the Arabic version of the site, I can translate all words etc. but numbers still show as 12345. I want to display Arabic numbers instead. It's impossible to translate the numbers because they are generated dynamically and keep changing.
I guess some sort of "on-the-fly" solution is what I'm looking for?