mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
13 lines
270 B
TypeScript
13 lines
270 B
TypeScript
/// <reference path="./os-locale.d.ts" />
|
|
|
|
import osLocale, { sync } from 'os-locale';
|
|
|
|
osLocale((err: any, locale: string) => {
|
|
});
|
|
|
|
osLocale({spawn: false}, (err: any, locale: string) => {
|
|
});
|
|
|
|
var locale1: string = sync();
|
|
var locale2: string = sync({spawn: false});
|