fix(i18n): fixed some stuff idk

This commit is contained in:
Observer KRypt0n_ 2023-02-26 15:14:40 +02:00
parent ad0893ec8b
commit 6f794947b9
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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");
}