liveview-native / liveview-client-swiftui

MIT License
372 stars 36 forks source link

Add nested keys to `_interface` for l10n and i18n #1384

Closed carson-katri closed 3 months ago

carson-katri commented 3 months ago

Closes #1379

The params sent to the server now look like this:

%{
  "_format" => "swiftui",
  "_interface" => %{
    "app_build" => "1",
    "app_version" => "1.0",
    "bundle_id" => "com.example.app",
    "internationalization" => %{
      "time_zone" => "America/New_York"
    },
    "localization" => %{
      "locale" => "en_US"
    },
    "os" => "iOS",
    "os_version" => "18.0",
    "target" => "ios"
  }
}

Note the addition of the internationalization and localization keys.

bcardarella commented 3 months ago

can you rename the keys to the short version?