This helps getting the full locale name from within the UI-Tests. It was critical for the screenshots that are used in my company and probably will be really useful for someone else. We have to take different screenshots for different regions, for example:
For es-MX we show Mexico City on the screenshot,
For es-ES we show Barcelona on the screenshot,
For es-CH we show something else.
We achieved it this way and I wanted to share this solution with everyone else.
This helps getting the full locale name from within the UI-Tests. It was critical for the screenshots that are used in my company and probably will be really useful for someone else. We have to take different screenshots for different regions, for example:
For es-MX we show Mexico City on the screenshot, For es-ES we show Barcelona on the screenshot, For es-CH we show something else.
We achieved it this way and I wanted to share this solution with everyone else.