compute "locale" property server side so it may be used in other routes