pub struct LanguageManager;Expand description
Zentrale Verwaltung aller Language-Operationen
Implementations§
Source§impl LanguageManager
impl LanguageManager
Sourcepub fn show_status() -> String
pub fn show_status() -> String
Zeigt aktuellen Status und verfügbare Sprachen
Sourcepub async fn change_language(lang: &str) -> Result<String>
pub async fn change_language(lang: &str) -> Result<String>
Ändert die Sprache komplett (i18n + Config + Persistence)
Sourcepub async fn process_save_message(message: &str) -> Option<String>
pub async fn process_save_message(message: &str) -> Option<String>
Verarbeitet SAVE_LANGUAGE Messages von screen.rs
Sourcepub fn create_save_message_format(lang: &str, display_text: &str) -> String
pub fn create_save_message_format(lang: &str, display_text: &str) -> String
✅ FEHLENDE METHODE: Erstellt Save Message Format (public für command.rs)
Sourcepub fn switch_language_only(lang: &str) -> Result<()>
pub fn switch_language_only(lang: &str) -> Result<()>
Direkter Language-Switch ohne Config-Save (für interne Nutzung)
Sourcepub fn get_available() -> Vec<String>
pub fn get_available() -> Vec<String>
Gibt verfügbare Sprachen zurück
Sourcepub fn get_current() -> String
pub fn get_current() -> String
Gibt aktuelle Sprache zurück
Auto Trait Implementations§
impl Freeze for LanguageManager
impl RefUnwindSafe for LanguageManager
impl Send for LanguageManager
impl Sync for LanguageManager
impl Unpin for LanguageManager
impl UnwindSafe for LanguageManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more