@tauri-apps/plugin-os - v2.3.0
    Preparing search index...

    Function locale

    • Returns a String with a BCP-47 language tag inside. If the locale couldn’t be obtained, null is returned instead.

      Returns Promise<null | string>

      import { locale } from '@tauri-apps/plugin-os';
      const locale = await locale();
      if (locale) {
      // use the locale string here
      }

      2.0.0