i18n template
This commit is contained in:
parent
c826b8a819
commit
3b9b4dbd7e
5 changed files with 24 additions and 0 deletions
6
bot/src/config/i18n.rs
Normal file
6
bot/src/config/i18n.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
use eva::data;
|
||||
|
||||
#[data]
|
||||
pub struct I18n {
|
||||
|
||||
}
|
|
@ -1,7 +1,11 @@
|
|||
use eva::{data, utils::SecretString};
|
||||
|
||||
pub mod i18n;
|
||||
|
||||
#[data]
|
||||
pub struct Config {
|
||||
pub token: SecretString,
|
||||
pub endpoint: Option<String>,
|
||||
|
||||
pub i18n: i18n::I18n,
|
||||
}
|
1
bot/src/handlers.rs
Normal file
1
bot/src/handlers.rs
Normal file
|
@ -0,0 +1 @@
|
|||
|
|
@ -7,6 +7,7 @@ use viendesu::service::Service;
|
|||
|
||||
pub use self::config::Config;
|
||||
|
||||
mod handlers;
|
||||
pub mod config;
|
||||
|
||||
trait_set! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue