You will need a RewriteMap, a cgi-script called by that RewriteMap, and a database for that script to look up the translation. This solution is only available if you have server config-level access, and cannot be implemented with .htaccess-only privileges.
See Apache mod_rewrite, and specifically the RewriteMap directive.