replace ctx.supportedLocales property by ctx.supportedLocales() function