Skip to content

Timeular/culture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Culture

Get the current user date and time locale and allows to open the date/time system preferences.

works on windows and mac

Doc

// returns the current user locale (e.g. en-us, en-gb, de-de, ...)
culture.get() : string
// opens the date/time system preferences
culture.openSettings()

Example

const culture = require('culture');
const locale = culture.get(); // e.g. en-us
culture.openSettings();