i18n: per-network locale (en/es/fr) for karma replies and the web board
All checks were successful
ci / check (push) Successful in 45s

This commit is contained in:
Jean Chevronnet 2026-07-30 00:31:17 +00:00
parent f290554325
commit 739fc8ad94
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
11 changed files with 406 additions and 115 deletions

View file

@ -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),