Testing workflow
Some checks failed
Multi-Platform Release Build / detect-architecture (push) Has been cancelled
Multi-Platform Release Build / build (false, native) (push) Has been cancelled
Multi-Platform Release Build / build (true, aarch64-linux-gnu-gcc, aarch64-unknown-linux-gnu) (push) Has been cancelled
Multi-Platform Release Build / build (true, arm-linux-gnueabihf-gcc, armv7-unknown-linux-gnueabihf) (push) Has been cancelled
Multi-Platform Release Build / build (true, x86_64-linux-gnu-gcc, x86_64-unknown-linux-gnu) (push) Has been cancelled
Multi-Platform Release Build / build (true, x86_64-w64-mingw32-gcc, x86_64-pc-windows-gnu) (push) Has been cancelled
Multi-Platform Release Build / create-release (push) Has been cancelled

This commit is contained in:
Marco De Araujo 2025-12-30 07:35:50 -04:00
parent 414609b6e0
commit f6640ede13
3 changed files with 255 additions and 2 deletions

View file

@ -10,7 +10,7 @@ use unic_langid::LanguageIdentifier;
static SYSTEM_LOCALE: OnceLock<LanguageIdentifier> = OnceLock::new();
static TRANSLATION_CACHE: OnceLock<RwLock<HashMap<String, String>>> = OnceLock::new();
const CACHE_INITIAL_SIZE: usize = 100;
const CACHE_INITIAL_SIZE: usize = 30;
const CACHE_SIZE_LIMIT: usize = 1000;
fn get_system_locale() -> &'static LanguageIdentifier {