콘텐츠로 이동

locale

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/plugins/os · Kind Function

import { locale } from '@netwiv/api/plugins/os';

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

function locale(): Promise<string | null>
import { locale } from '@netwiv/api/plugins/os';
const locale = await locale();
if (locale) {
// use the locale string here
}

Upstream since 2.0.0


Descriptions come from the pinned @tauri-apps/plugin-os@2.3.2 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.