@spongex/system-locale

1.0.1 • Public • Published

Sytem Locale Variable

Get the system locale

This is a variable that will set itself to the system's locale string.

Install to your existing project using:

npm i @spongex/system-locale

Include ECMAScript:

import { __locale } from '@spongex/system-locale'

Include CommonJS:

const { __locale } = require('@spongex/system-locale')

Usage

console.log(__locale)

Example output: en-US

Changelog

1.0.1

  • Dependencies bump

1.0.0

  • Initial release

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @spongex/system-locale

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.35 kB

    Total Files

    8

    Last publish

    Collaborators

    • spongex