We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
%{ "app_build" => "1.0", "app_version" => [1, 0], "bundle_id" => "com.example.Debuggertest", "i18n" => %{"time_zone" => "America/New_York"}, "l10n" => %{"locale" => "en_US"}, "os" => "iOS", "os_version" => [18, 2], "target" => "ios" }
So if the i18n and i10n value changes a new event is pushed to the server "lvn:update_interface" with the following params:
i18n
i10n
"lvn:update_interface"
%{ "i18n" => %{"time_zone" => "Europe/Paris"} "i10n" => %{"locale" => "fr_FR"} }
this would then be handled by a provided event handler built into LVN:
def handle_event("lvn:update_interface", interface_updates, socket) do {:noreply, assign(socket, %{"_interface" => Map.merge(socket.assigns._interface, interface_updates))} end
the motivation is for template updates for certain values:
<Text :interface-i18n="America/New_York">New York!</Text>
In this example the SwiftUI server-side client is normalizing the %{"time_zone" => "Ameirca/New_York"} to just the "America/New_York" value.
%{"time_zone" => "Ameirca/New_York"}
"America/New_York"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
So if the
i18n
andi10n
value changes a new event is pushed to the server"lvn:update_interface"
with the following params:this would then be handled by a provided event handler built into LVN:
the motivation is for template updates for certain values:
In this example the SwiftUI server-side client is normalizing the
%{"time_zone" => "Ameirca/New_York"}
to just the"America/New_York"
value.The text was updated successfully, but these errors were encountered: