Using locales and defaultLocale as in newer libby

Before anyone depends on it.