if I understand correctly, this will be called for each loaded resource, right ? But resources are not always for the current language, right ?

Therefore I think you should check if this is a resource for the current language before trying to translate