validate language before translating