mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
12 lines
313 B
Rust
Executable file
12 lines
313 B
Rust
Executable file
#![doc = include_str!("../README.md")]
|
|
|
|
use std::collections::HashMap;
|
|
|
|
use once_cell::sync::Lazy;
|
|
|
|
pub static STORAGE: Lazy<HashMap<String, String>> =
|
|
Lazy::new(|| serde_json::from_str(include_str!("en_us.json")).unwrap());
|
|
|
|
pub fn get(key: &str) -> Option<&str> {
|
|
STORAGE.get(key).map(|s| s.as_str())
|
|
}
|