fix android (#531)

This commit is contained in:
Sijie.Sun
2024-12-23 19:38:32 -05:00
committed by GitHub
parent f3de00be37
commit 2f4a097787
17 changed files with 147 additions and 159 deletions

View File

@@ -828,7 +828,7 @@ async fn run_main(cli: Cli) -> anyhow::Result<()> {
Ok(())
}
#[tokio::main]
#[tokio::main(flavor = "current_thread")]
async fn main() {
let locale = sys_locale::get_locale().unwrap_or_else(|| String::from("en-US"));
rust_i18n::set_locale(&locale);