i18n-embed 0.13.8

Traits and macros to conveniently embed localization assets into your application binary or library in order to localize it at runtime.
Documentation
/// Get the translation domain from the module path (first module in
/// the module path).
pub fn domain_from_module(module_path: &str) -> &str {
    module_path.split("::").next().unwrap_or(module_path)
}