www and gui maintain the current locale as state, but they're not synchronized. Changing the language in gui should update the locale for www, and changing the locale in www should set the locale for gui.