1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// License: see LICENSE file at root directory of `master` branch

//! # Internatinonalization

use {
    std::borrow::Cow,
};

/// # Internatinonalization
///
/// ## Default values
///
/// Please see documentation of each field.
#[derive(Debug)]
pub struct I18n<'a> {

    /// # "Commands"
    pub commands: Cow<'a, str>,

    /// # "No Commands"
    pub no_commands: Cow<'a, str>,

    /// # "Options"
    pub options: Cow<'a, str>,

    /// # "No Options"
    pub no_options: Cow<'a, str>,

    /// # "Values"
    pub values: Cow<'a, str>,

    /// # "Default"
    pub default: Cow<'a, str>,

    /// # "Required"
    pub required: Cow<'a, str>,

    /// # "Project"
    pub project: Cow<'a, str>,

    /// # "Home"
    pub home: Cow<'a, str>,

    /// # "License"
    pub license: Cow<'a, str>,

}

impl Default for I18n<'_> {

    fn default() -> Self {
        Self {
            commands: Cow::Borrowed("Commands"),
            no_commands: Cow::Borrowed("No Commands"),
            options: Cow::Borrowed("Options"),
            no_options: Cow::Borrowed("No Options"),
            values: Cow::Borrowed("Values"),
            default: Cow::Borrowed("Default"),
            required: Cow::Borrowed("Required"),
            project: Cow::Borrowed("Project"),
            home: Cow::Borrowed("Home"),
            license: Cow::Borrowed("License"),
        }
    }

}