Add puppet custom function to handle languages