Skip to content

Commit

Permalink
docs: new Crowdin updates (#2577)
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho committed Feb 8, 2021
1 parent 533bda2 commit 4008759
Show file tree
Hide file tree
Showing 6 changed files with 360 additions and 0 deletions.
60 changes: 60 additions & 0 deletions translated/es-ES/website/docs/polyfills/intl-localematcher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
id: intl-localematcher
title: Intl.LocaleMatcher
---

A spec-compliant ponyfill for [Intl.LocaleMatcher](https://github.com/tc39/proposal-intl-localematcher). Since this is only stage-1 this package is a ponyfill instead of polyfill.

[![npm Version](https://img.shields.io/npm/v/@formatjs/intl-localematcher.svg?style=flat-square)](https://www.npmjs.org/package/@formatjs/intl-localematcher) ![size](https://badgen.net/bundlephobia/minzip/@formatjs/intl-localematcher)

## Installation

import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem'

<Tabs
groupId="npm"
defaultValue="npm"
values={[
{label: 'npm', value: 'npm'},
{label: 'yarn', value: 'yarn'},
]}>
<TabItem value="npm">

```sh
npm i @formatjs/intl-localematcher
```

</TabItem>
<TabItem value="yarn">

```sh
yarn add @formatjs/intl-localematcher
```

</TabItem>
</Tabs>

## Requirements

- [`Intl.getCanonicalLocales`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales) or [polyfill](intl-getcanonicallocales.md)
- [`Intl.Locale`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) or [polyfill](intl-locale.md)

## Usage

### Simple

```tsx
import {match} from '@formatjs/intl-localematcher'

match(
['fr-XX', 'en'],
['fr', 'en']
'en'
) // 'fr'

match(
['zh'],
['fr', 'en']
'en'
) // 'en'
```
60 changes: 60 additions & 0 deletions translated/fr-FR/website/docs/polyfills/intl-localematcher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
id: intl-localematcher
title: Intl.LocaleMatcher
---

A spec-compliant ponyfill for [Intl.LocaleMatcher](https://github.com/tc39/proposal-intl-localematcher). Since this is only stage-1 this package is a ponyfill instead of polyfill.

[![npm Version](https://img.shields.io/npm/v/@formatjs/intl-localematcher.svg?style=flat-square)](https://www.npmjs.org/package/@formatjs/intl-localematcher) ![size](https://badgen.net/bundlephobia/minzip/@formatjs/intl-localematcher)

## Installation

import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem'

<Tabs
groupId="npm"
defaultValue="npm"
values={[
{label: 'npm', value: 'npm'},
{label: 'yarn', value: 'yarn'},
]}>
<TabItem value="npm">

```sh
npm i @formatjs/intl-localematcher
```

</TabItem>
<TabItem value="yarn">

```sh
yarn add @formatjs/intl-localematcher
```

</TabItem>
</Tabs>

## Requirements

- [`Intl.getCanonicalLocales`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales) or [polyfill](intl-getcanonicallocales.md)
- [`Intl.Locale`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) or [polyfill](intl-locale.md)

## Usage

### Simple

```tsx
import {match} from '@formatjs/intl-localematcher'

match(
['fr-XX', 'en'],
['fr', 'en']
'en'
) // 'fr'

match(
['zh'],
['fr', 'en']
'en'
) // 'en'
```
60 changes: 60 additions & 0 deletions translated/ja-JP/website/docs/polyfills/intl-localematcher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
id: intl-localematcher
title: Intl.LocaleMatcher
---

A spec-compliant ponyfill for [Intl.LocaleMatcher](https://github.com/tc39/proposal-intl-localematcher). Since this is only stage-1 this package is a ponyfill instead of polyfill.

[![npm Version](https://img.shields.io/npm/v/@formatjs/intl-localematcher.svg?style=flat-square)](https://www.npmjs.org/package/@formatjs/intl-localematcher) ![size](https://badgen.net/bundlephobia/minzip/@formatjs/intl-localematcher)

## Installation

import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem'

<Tabs
groupId="npm"
defaultValue="npm"
values={[
{label: 'npm', value: 'npm'},
{label: 'yarn', value: 'yarn'},
]}>
<TabItem value="npm">

```sh
npm i @formatjs/intl-localematcher
```

</TabItem>
<TabItem value="yarn">

```sh
yarn add @formatjs/intl-localematcher
```

</TabItem>
</Tabs>

## Requirements

- [`Intl.getCanonicalLocales`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales) or [polyfill](intl-getcanonicallocales.md)
- [`Intl.Locale`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) or [polyfill](intl-locale.md)

## Usage

### Simple

```tsx
import {match} from '@formatjs/intl-localematcher'

match(
['fr-XX', 'en'],
['fr', 'en']
'en'
) // 'fr'

match(
['zh'],
['fr', 'en']
'en'
) // 'en'
```
60 changes: 60 additions & 0 deletions translated/pt-PT/website/docs/polyfills/intl-localematcher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
id: intl-localematcher
title: Intl.LocaleMatcher
---

A spec-compliant ponyfill for [Intl.LocaleMatcher](https://github.com/tc39/proposal-intl-localematcher). Since this is only stage-1 this package is a ponyfill instead of polyfill.

[![npm Version](https://img.shields.io/npm/v/@formatjs/intl-localematcher.svg?style=flat-square)](https://www.npmjs.org/package/@formatjs/intl-localematcher) ![size](https://badgen.net/bundlephobia/minzip/@formatjs/intl-localematcher)

## Installation

import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem'

<Tabs
groupId="npm"
defaultValue="npm"
values={[
{label: 'npm', value: 'npm'},
{label: 'yarn', value: 'yarn'},
]}>
<TabItem value="npm">

```sh
npm i @formatjs/intl-localematcher
```

</TabItem>
<TabItem value="yarn">

```sh
yarn add @formatjs/intl-localematcher
```

</TabItem>
</Tabs>

## Requirements

- [`Intl.getCanonicalLocales`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales) or [polyfill](intl-getcanonicallocales.md)
- [`Intl.Locale`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) or [polyfill](intl-locale.md)

## Usage

### Simple

```tsx
import {match} from '@formatjs/intl-localematcher'

match(
['fr-XX', 'en'],
['fr', 'en']
'en'
) // 'fr'

match(
['zh'],
['fr', 'en']
'en'
) // 'en'
```
60 changes: 60 additions & 0 deletions translated/zh-CN/website/docs/polyfills/intl-localematcher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
id: intl-localematcher
title: Intl.LocaleMatcher
---

A spec-compliant ponyfill for [Intl.LocaleMatcher](https://github.com/tc39/proposal-intl-localematcher). Since this is only stage-1 this package is a ponyfill instead of polyfill.

[![npm Version](https://img.shields.io/npm/v/@formatjs/intl-localematcher.svg?style=flat-square)](https://www.npmjs.org/package/@formatjs/intl-localematcher) ![size](https://badgen.net/bundlephobia/minzip/@formatjs/intl-localematcher)

## Installation

import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem'

<Tabs
groupId="npm"
defaultValue="npm"
values={[
{label: 'npm', value: 'npm'},
{label: 'yarn', value: 'yarn'},
]}>
<TabItem value="npm">

```sh
npm i @formatjs/intl-localematcher
```

</TabItem>
<TabItem value="yarn">

```sh
yarn add @formatjs/intl-localematcher
```

</TabItem>
</Tabs>

## Requirements

- [`Intl.getCanonicalLocales`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales) or [polyfill](intl-getcanonicallocales.md)
- [`Intl.Locale`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) or [polyfill](intl-locale.md)

## Usage

### Simple

```tsx
import {match} from '@formatjs/intl-localematcher'

match(
['fr-XX', 'en'],
['fr', 'en']
'en'
) // 'fr'

match(
['zh'],
['fr', 'en']
'en'
) // 'en'
```
60 changes: 60 additions & 0 deletions translated/zh-TW/website/docs/polyfills/intl-localematcher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
id: intl-localematcher
title: Intl.LocaleMatcher
---

A spec-compliant ponyfill for [Intl.LocaleMatcher](https://github.com/tc39/proposal-intl-localematcher). Since this is only stage-1 this package is a ponyfill instead of polyfill.

[![npm Version](https://img.shields.io/npm/v/@formatjs/intl-localematcher.svg?style=flat-square)](https://www.npmjs.org/package/@formatjs/intl-localematcher) ![size](https://badgen.net/bundlephobia/minzip/@formatjs/intl-localematcher)

## Installation

import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem'

<Tabs
groupId="npm"
defaultValue="npm"
values={[
{label: 'npm', value: 'npm'},
{label: 'yarn', value: 'yarn'},
]}>
<TabItem value="npm">

```sh
npm i @formatjs/intl-localematcher
```

</TabItem>
<TabItem value="yarn">

```sh
yarn add @formatjs/intl-localematcher
```

</TabItem>
</Tabs>

## Requirements

- [`Intl.getCanonicalLocales`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales) or [polyfill](intl-getcanonicallocales.md)
- [`Intl.Locale`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) or [polyfill](intl-locale.md)

## Usage

### Simple

```tsx
import {match} from '@formatjs/intl-localematcher'

match(
['fr-XX', 'en'],
['fr', 'en']
'en'
) // 'fr'

match(
['zh'],
['fr', 'en']
'en'
) // 'en'
```

0 comments on commit 4008759

Please sign in to comment.