Skip to content

FormatLocale — @gj-kit/format

A public type from @gj-kit/format. The signature below is taken directly from the 0.1.1 release declaration.

import { FormatLocale } from '@gj-kit/format';
/**
* Explicit locale selector for the Intl-backed formatters.
*
* It selects **digit grouping and the decimal separator only**. Currency
* symbols, symbol position and the percent sign are pinned by this package and
* do not vary with the locale — see {@link formatKrw} and {@link formatPercent}.
* `'device'` opts into the runtime default locale (grouping then varies by
* device settings — an explicit, visible choice).
*/
type FormatLocale = 'device' | (string & {}) | readonly string[];

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/format
  • Version: 0.1.1
  • Public entry: .
  • Source: GitHub