Skip to content

Commit

Permalink
fix(pkg): move to vintl scope and vintl-dev github organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
brawaru committed Mar 1, 2023
1 parent 6a3170f commit cf497a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @braw/compact-number
# @vintl/compact-number

> Pluralisable compact notation numbers using `@formatjs/intl`.
Expand Down Expand Up @@ -29,27 +29,27 @@ With your package manager of choice:
**npm**

```sh
npm i @braw/compact-number
npm i @vintl/compact-number
```

**pnpm**

```sh
pnpm add @braw/compact-number
pnpm add @vintl/compact-number
```

**yarn**

```sh
yarn add @braw/compact-number
yarn add @vintl/compact-number
```

## **Example**

```jsx
import { createFormatter } from '@braw/compact-number'
import { createFormatter } from '@vintl/compact-number'
import { createIntl } from '@formatjs/intl'
import '@braw/compact-number/locale-data/en'
import '@vintl/compact-number/locale-data/en'

const intl = createIntl({ locale: 'en-US' })

Expand Down Expand Up @@ -119,7 +119,7 @@ if (supportedLocalesOf(['en-US']).length < 1) {
A function that accepts BCP 47 language tag and locale data object to store for use.

```ts
import data from '@braw/compact-number/locale-data/en.data'
import data from '@vintl/compact-number/locale-data/en.data'
addLocaleData('en', enData)
supportedLocalesOf(['en-US'])
// => ['en']
Expand All @@ -143,4 +143,4 @@ In order to accurately round the numbers, CLDR locale data is required.

This module is built with of a subset of locale data provided by the `cldr-numbers-modern` module.

You can auto-add this data using `@braw/compact-number/locale-data/[tag]`.
You can auto-add this data using `@vintl/compact-number/locale-data/[tag]`.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@braw/compact-number",
"name": "@vintl/compact-number",
"version": "1.0.0",
"description": "Pluralisable compact notation numbers using @formatjs/intl",
"keywords": [
"i18n",
"intl"
],
"homepage": "https://github.com/brawaru/compact-number",
"homepage": "https://github.com/vintl-dev/compact-number",
"bugs": {
"url": "https://github.com/brawaru/compact-number/issues"
"url": "https://github.com/vintl-dev/compact-number/issues"
},
"author": {
"name": "Alexander 'Brawaru' Sorokin",
Expand All @@ -17,7 +17,7 @@
"funding": "https://github.com/Brawaru/Brawaru/blob/main/SUPPORT.md",
"repository": {
"type": "git",
"url": "https://github.com/brawaru/compact-number.git"
"url": "https://github.com/vintl-dev/compact-number.git"
},
"license": "MIT",
"sideEffects": false,
Expand Down

0 comments on commit cf497a1

Please sign in to comment.