i18n: per-network locale (en/es/fr) for karma replies and the web board
All checks were successful
ci / check (push) Successful in 45s
All checks were successful
ci / check (push) Successful in 45s
This commit is contained in:
parent
f290554325
commit
739fc8ad94
11 changed files with 406 additions and 115 deletions
|
|
@ -11,13 +11,14 @@ pub mod weather;
|
|||
pub mod wiki;
|
||||
|
||||
use super::module::Module;
|
||||
use crate::i18n::Locale;
|
||||
|
||||
pub fn all(network: &str) -> Vec<Box<dyn Module>> {
|
||||
pub fn all(network: &str, locale: Locale) -> Vec<Box<dyn Module>> {
|
||||
vec![
|
||||
Box::new(builtins::Builtins),
|
||||
Box::new(dice::Dice::new()),
|
||||
Box::new(hash::Hash),
|
||||
Box::new(karma::Karma::new(network)),
|
||||
Box::new(karma::Karma::new(network, locale)),
|
||||
Box::new(crypto::Crypto),
|
||||
Box::new(define::Define),
|
||||
Box::new(down::Down),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue