translate
translate the provided key, returning the key as per the translation table.
If the key is not present in the table, then the resourcePath file is checked for the key. The value is then returned. Warnings will be issued if the file/key does not exist.
Throws
if multiple values exist for the same key.