Installation
npm install --save @types/system-locale
Summary
This package contains type definitions for system-locale (https://github.com/derhuerst/system-locale).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/system-locale.
index.d.ts
export = systemLocale;
/**
* Get the [locale](https://en.wikipedia.org/wiki/Locale_(computer_software)) from your operating system.
* Support macOS, Linux & Windows.
*
* @example
* import locale = require('system-locale');
*
* locale().then(console.log);
* // => 'en_DE'
*/
declare function systemLocale(): Promise<string>;
declare namespace systemLocale {
/**
* Get the [locale](https://en.wikipedia.org/wiki/Locale_(computer_software)) from your operating system.
* Support macOS, Linux & Windows.
*
* @example
* import locale = require('system-locale');
*
* console.log(locale.sync());
* // => 'en_DE'
*/
function sync(): string;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by BendingBender.