mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-06-19 12:13:32 +00:00
feat/localization (#104)
* initial i18n setup for PWSP-GUI * add Russian locale * add missing entries * add Spanish locale * add French locale * add Chinese locale * add Arabic locale * update cargo-sources.json
This commit is contained in:
committed by
GitHub
parent
dc1ecc81ea
commit
c6d9f2d6e7
+7
-1
@@ -1,8 +1,14 @@
|
||||
mod gui;
|
||||
|
||||
use anyhow::Result;
|
||||
use rust_i18n::i18n;
|
||||
|
||||
i18n!("locales", fallback = "en");
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
gui::run().await
|
||||
let locale = sys_locale::get_locale().unwrap_or(String::from("en-US"));
|
||||
rust_i18n::set_locale(&locale);
|
||||
|
||||
gui::run().await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user