Module fluent_fallback::env[][src]

Expand description

Traits required to provide environment driven data for Localization.

Since Localization is a long-lived structure, the model in which the user provides ability for the system to react to changes is by implementing the given environmental trait and triggering Localization::on_change method.

At the moment just a single trait is provided, which allows the environment to feed a selection of locales to be provided to the instance.

The locales provided to Localization should be already negotiated to ensure that the resources in those locales are available. The list should also be sorted according to the user preference, as the order is significant for how Localization performs fallbacking.

Traits

A trait used to provide a selection of locales to be used by the Localization instance for runtime locale fallbacking.