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
use {
std::borrow::Cow,
};
#[derive(Debug)]
pub struct I18n<'a> {
pub commands: Cow<'a, str>,
pub no_commands: Cow<'a, str>,
pub options: Cow<'a, str>,
pub no_options: Cow<'a, str>,
pub values: Cow<'a, str>,
pub default: Cow<'a, str>,
pub required: Cow<'a, str>,
pub project: Cow<'a, str>,
pub home: Cow<'a, str>,
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"),
}
}
}