Fix locales loading
Auto detect server url