mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-11-25 06:16:18 +03:00
fix(i18n): fixed some stuff idk
This commit is contained in:
parent
ad0893ec8b
commit
6f794947b9
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ pub struct Background {
|
|||
pub fn get_uri() -> String {
|
||||
let uri = concat!("https://sdk-os-static.", "ho", "yo", "verse", ".com/hk4e_global/mdk/launcher/api/content?filter_adv=true&key=gcStgarh&launcher_id=10&language=");
|
||||
|
||||
uri.to_owned() + &crate::i18n::format_lang(crate::i18n::get_lang())
|
||||
uri.to_owned() + &crate::i18n::format_lang(&crate::i18n::get_lang())
|
||||
}
|
||||
|
||||
#[cached::proc_macro::cached(result)]
|
||||
|
|
|
@ -69,7 +69,7 @@ fn main() {
|
|||
// Set initial launcher language based on system language
|
||||
let mut config = config::get().expect("Failed to get config");
|
||||
|
||||
config.launcher.language = i18n::format_lang(i18n::get_default_lang());
|
||||
config.launcher.language = i18n::format_lang(&i18n::get_default_lang());
|
||||
|
||||
config::update_raw(config).expect("Failed to update config");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue