Explain why this function should be used and give an example of how this function works in different locales.