tauri_plugin_dialog: When setting the button to Chinese, it crashes.
Repeat the code:
app
.dialog()
.message("信息")
.title("提示")
.kind(MessageDialogKind::Warning)
.buttons(MessageDialogButtons::OkCancelCustom(
String::from("确定"),
String::from("取消"),
))
.blocking_show();
Thanks for the report, could you also share the output of the tauri info command please?
I can't reproduce this at all, please give us more information (crash log, plugin and tauri version, minimal reproduction code, ...) or we can't help you
I can't reproduce this at all, please give us more information (crash log, plugin and tauri version, minimal reproduction code, ...) or we can't help you
Sorry, I forgot to mention that it's on macOS.
Here is my tauri info:
> tauri "info"
[✔] Environment
- OS: Mac OS 15.3.1 arm64 (X64)
✔ Xcode Command Line Tools: installed
✔ rustc: 1.84.1 (e71f9a9a9 2025-01-27)
✔ cargo: 1.84.1 (66221abde 2024-11-19)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-aarch64-apple-darwin (default)
- node: 20.18.2
- pnpm: 9.15.1
- yarn: 1.22.22
- npm: 10.8.2
[-] Packages
- tauri 🦀: 2.2.5
- tauri-build 🦀: 2.0.5
- wry 🦀: 0.48.1
- tao 🦀: 0.31.1
- @tauri-apps/api : 2.2.0 (outdated, latest: 2.3.0)
- @tauri-apps/cli : 2.2.7 (outdated, latest: 2.3.1)
[-] Plugins
- tauri-plugin-localhost 🦀: 2.2.0
- @tauri-apps/plugin-localhost : not installed!
- tauri-plugin-updater 🦀: 2.5.0
- @tauri-apps/plugin-updater : 2.5.0 (outdated, latest: 2.5.1)
- tauri-plugin-store 🦀: 2.2.0
- @tauri-apps/plugin-store : 2.2.0
- tauri-plugin-single-instance 🦀: 2.2.2
- @tauri-apps/plugin-single-instance : not installed!
- tauri-plugin-os 🦀: 2.2.0
- @tauri-apps/plugin-os : 2.2.0
- tauri-plugin-autostart 🦀: 2.2.0
- @tauri-apps/plugin-autostart : 2.2.0
- tauri-plugin-opener 🦀: 2.2.5
- @tauri-apps/plugin-opener : 2.2.5 (outdated, latest: 2.2.6)
- tauri-plugin-global-shortcut 🦀: 2.2.0
- @tauri-apps/plugin-global-shortcut : 2.2.0
- tauri-plugin-dialog 🦀: 2.2.0
- @tauri-apps/plugin-dialog : 2.2.0
- tauri-plugin-fs 🦀: 2.2.0
- @tauri-apps/plugin-fs : 2.2.0
- tauri-plugin-clipboard-manager 🦀: 2.2.1
- @tauri-apps/plugin-clipboard-manager : 2.2.1
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
Cool, since I don't have a mac to test this, I'll leave it to other members who has one, and if possible, please provide us a minimal reproducible example so it's easier to trouble shoot
Cool, since I don't have a mac to test this, I'll leave it to other members who has one, and if possible, please provide us a minimal reproducible example so it's easier to trouble shoot
Here: https://github.com/qiuxchao/tauri-dialog-issue-demo
When you start it, it will crash.