How to Set Your Computer and Browser to Test from a Foreign Country
Useful for testing the internationalisation of your webapps.
In the last article, I shared a tip about creating localization files using ChatGPT, for developers.
On the testing side, when you have internationalisation, how do you verify that?
Here is a screenshot of two machines (one is virtual) accessing the same website, one is English and the other is Chinese.
The website language is different based on the machine’s language preferences.
The verification part is easy to test. But first, we must set up one machine to simulate in another country. I recommend picking a language/country you are kind of familiar with, so you can revert back easily, in this case, I’ll pick China.
After setting it, the machine will restart.
This is not done yet. For web testing, the browser sends its default language to the server as well.
Visit your browser’s language settings page, I’ll use Chrome here as an example: chrome://settings/languages
Click and drag the vertical dots next to the Chinese language to the top to make it the default browser language.
Done! Your machine should now successfully be set to another region and language.
In the next article, I will cover how to test locale-aware websites.