added try catch for invalid translation keys