Switched to toml for locales

This commit is contained in:
2024-08-18 03:30:11 +03:00
parent 659965a744
commit e3f121e0d6
7 changed files with 238 additions and 205 deletions

View File

@ -10,9 +10,9 @@ pub struct LocaleStore {
impl LocaleStore {
pub fn init() {
let ru = serde_yaml::from_slice(include_bytes!("../locales/ru.yaml"))
let ru = toml::from_str(include_str!("../locales/ru.toml"))
.expect("Error parsing russian locale");
let eng = serde_yaml::from_slice(include_bytes!("../locales/eng.yaml"))
let eng = toml::from_str(include_str!("../locales/eng.toml"))
.expect("Error parsing english locale");
assert!(