doki_core/config/i18n/mod.rs
1use super::*;
2
3#[derive(Serialize, Deserialize, Debug, PartialEq)]
4pub struct DokiInternationalization {
5 enable: bool,
6}
7
8impl Default for DokiInternationalization {
9 fn default() -> Self {
10 Self { enable: false }
11 }
12}
13
14impl DokiConfig {
15 pub fn i18n_enable(&self) -> bool {
16 match &self.i18n {
17 None => false,
18 Some(s) => s.enable,
19 }
20 }
21}