Micro translation library for dynamic text lookup and substitution