Update for locale API changes.