I think that this can be done with tied hashes. So when the language is English then you could set the hash %t
to be a hash tied to Tie::Hash::Identity. In that case the value returned for the key would be the key itself. For French you would still import the whole mapping.