Fixed {locale} resources loading error in Chrome. (.contains => indexOf >= 0)