i18n-config 0.4.7

This library contains the configuration stucts (along with their parsing functions) for the cargo-i18n tool/system.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::Deserialize;
use std::path::PathBuf;

/// The data structure representing what is stored (and possible to
/// store) within the `fluent` subsection of a `i18n.toml` file.
#[derive(Deserialize, Debug, Clone)]
pub struct FluentConfig {
    /// (Required) The path to the assets directory.
    ///
    /// The paths inside the assets directory should be  structured
    /// like so: `assets_dir/{language}/{domain}.ftl`
    pub assets_dir: PathBuf,

    /// (Optional) Domain name to override default value (i.e. package name)
    /// The paths inside the assets directory should be  structured
    /// like so: `assets_dir/{language}/{domain}.ftl`
    pub domain: Option<String>,
}