Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@atlaskit/locale

atlassian110.6kApache-2.03.0.3TypeScript support: included

Utility functions for handling localization

readme

Locale

Utility functions for handling localization.

Installation

yarn add @atlaskit/locale

Usage

Detailed docs and example usage can be found here.

changelog

@atlaskit/locale

3.0.3

Patch Changes

  • Updated dependencies

3.0.2

Patch Changes

3.0.1

Patch Changes

  • Updated dependencies

3.0.0

Major Changes

Patch Changes

  • Updated dependencies

2.8.3

Patch Changes

2.8.2

Patch Changes

  • #165531 57f451bda8919 - Adds side-effect config to support Compiled css extraction in third-party apps

2.8.1

Patch Changes

  • Updated dependencies

2.8.0

Minor Changes

  • #127511 db30e29344013 - Widening range of react and react-dom peer dependencies from ^16.8.0 || ^17.0.0 || ~18.2.0 to the wider range of ^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).

    This change has been done to enable usage of `react@18.3as well as to have a consistent peer dependency range forreactandreact-domfor/platform` packages.

Patch Changes

  • Updated dependencies

2.7.0

Minor Changes

2.6.5

Patch Changes

2.6.4

Patch Changes

2.6.3

Patch Changes

2.6.2

Patch Changes

2.6.1

Patch Changes

  • Updated dependencies

2.6.0

Minor Changes

2.5.4

Patch Changes

2.5.3

Patch Changes

  • #38651 60f2d9bdf8b - [ux] Add lang attribute to text box for more context for assistive technology users.

2.5.2

Patch Changes

  • #37600 fc22bf58d47 - id prop added to LocaleSelect to provide better association abilities.

2.5.1

Patch Changes

2.5.0

Minor Changes

2.4.1

Patch Changes

2.4.0

Minor Changes

Patch Changes

  • Updated dependencies

2.3.6

Patch Changes

  • Updated dependencies

2.3.5

Patch Changes

2.3.4

Patch Changes

2.3.3

Patch Changes

2.3.2

Patch Changes

  • Updated dependencies

2.3.1

Patch Changes

  • Updated dependencies

2.3.0

Minor Changes

  • #8178 ec026e28730 - #getDaysShort function now accepts new #weekStartDay parameter that controls which day of the week should be used at the start. This parameter accepts the following values:

    • 0 sunday (default value)
    • 1 monday
    • 2 tuesday
    • 3 wednesday
    • 4 thursday
    • 5 friday
    • 6 saturday

2.2.0

Minor Changes

  • #8029 689cf039197 - #getDaysShort function now accepts new #weekStartDay parameter that controls which day of the week should be used at the start. This parameter accepts the following values:

    • 0 sunday (default value)
    • 1 monday
    • 2 tuesday
    • 3 wednesday
    • 4 thursday
    • 5 friday
    • 6 saturday

2.1.3

Patch Changes

2.1.2

Patch Changes

  • #5497 5f58283e1f - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started Also add typescript to devDependencies to denote version that the package was built with.

2.1.1

Patch Changes

  • #3885 6c525a8229 - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0

    Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade to prevent duplicates of tslib being bundled.

2.1.0

Minor Changes

Patch Changes

  • Updated dependencies

2.0.0

Major Changes

Patch Changes

  • Updated dependencies

1.0.6

Patch Changes

1.0.5

Patch Changes

1.0.4

Patch Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

  • [patch]30acc30979:

    @atlaskit/select has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided. No API or behavioural changes.

1.0.1

Patch Changes

  • [patch]35d2229b2a:

    Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.

1.0.0

Major Changes

  • [major]d02e7d6018:

    Initial release of @atlaskit/locale

    This is a new package, providing utility functions that are an abstraction on top of Intl.DateTimeFormat