locale
locale():
Promise<null|string>
Defined in: index.ts:169
Returns a String with a BCP-47 language tag inside. If the locale couldn’t be obtained, null is returned instead.
Promise<null | string>
import { locale } from '@tauri-apps/plugin-os';const locale = await locale();if (locale) { // use the locale string here}2.0.0
© 2025 Tauri Contributors. CC-BY / MIT