//! The current locale for Laravel Rust, with the API of `laravel::lang`.
//!
//! Laravel Rust 0.1 has no localization. Its prototype (draft PR #309) adds `laravel::lang` with
//! `locale`, `set_locale`, `locales` and `negotiate`, and `request.preferred_locale()`. This crate
//! has the same names and behaviour today, so moving to the framework's own is changing the `use`.
//!
//! ```ignore
//! use laralocale::PreferredLocale;
//!
//! laralocale::set_locale(request.preferred_locale()); // for the rest of the request
//! laralocale::locale(); // "es"
//! laralocale::locales(); // ["en", "ca", "es"]
//! laralocale::negotiate(&["es-mx".to_owned()]); // "es"
//!
//! laralocale::with_locale("ca", async { send_the_newsletter().await }).await;
//! ```
//!
//! The locale lives in a task-local, so every request has its own and requests never see each
//! other's. Packages that translate, such as Laratext, Laralang and Larablog, read it with
//! [`locale()`](fn@locale) and need nothing else from this crate.
//!
//! It targets Laravel Rust 0.1 (beta), whose API it follows until 1.0.
pub use ;
pub use DetectLocale;
pub use ;
pub use PreferredLocale;
pub use LaralocaleServiceProvider;
pub use LocaleScope;