@types/system-locale
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/system-locale

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

3.98 kB

Total Files

5

Last publish

Collaborators

  • types