Skip to content

Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.

Record that the contacts locale changes nothing

Yashwanth Kamireddid2731d028089
diff --git a/crates/quince-icloud/src/contacts.rs b/crates/quince-icloud/src/contacts.rs
index cd9cfb9..7fdb532 100644
--- a/crates/quince-icloud/src/contacts.rs
+++ b/crates/quince-icloud/src/contacts.rs
@@ -272,6 +272,9 @@ async fn write(
) -> Result<Value> {
let mut query = params;
query.push(("clientVersion".into(), "2.1".into()));
+ // Fixed rather than the machine's own, and deliberately. Asked with en_US, fr_FR and
+ // ja_JP, Apple sent back byte-identical contacts, ordering and section headers — the
+ // parameter changes nothing this app reads, and sorting happens locally anyway.
query.push(("locale".into(), "en_US".into()));
query.push(("order".into(), "last,first".into()));
query.push(("prefToken".into(), tokens.pref.clone()));
@@ -431,6 +434,9 @@ async fn startup(
) -> Result<Value> {
let mut query = params;
query.push(("clientVersion".into(), "2.1".into()));
+ // Fixed rather than the machine's own, and deliberately. Asked with en_US, fr_FR and
+ // ja_JP, Apple sent back byte-identical contacts, ordering and section headers — the
+ // parameter changes nothing this app reads, and sorting happens locally anyway.
query.push(("locale".into(), "en_US".into()));
query.push(("order".into(), "last,first".into()));