Added getting locale from the URL segments (koajs.com/en)