Skip to content

Commit

Permalink
docs: new Crowdin updates (#2490)
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho committed Jan 8, 2021
1 parent a5d2003 commit ab68783
Show file tree
Hide file tree
Showing 24 changed files with 66 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Output
<TabItem value="vue">

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'
import {createApp} from 'vue'

const app = createApp(App)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function bootstrapApplication(locale, mainDiv) {
<TabItem value="vue">

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'
import {createApp} from 'vue'

function loadLocaleData(locale: string) {
Expand Down
4 changes: 2 additions & 2 deletions translated/es-ES/website/docs/guides/distribute-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function MyFeature(props: Props) {
<TabItem value="vue">

```ts
import {useIntl} from '@formatjs/vue-intl'
import {useIntl} from 'vue-intl'

const MyFeature = {
setup() {
Expand All @@ -161,7 +161,7 @@ or passing down via `provideIntl`

```ts
import {createIntl} from '@formatjs/intl'
import {provideIntl, useIntl} from '@formatjs/vue-intl'
import {provideIntl, useIntl} from 'vue-intl'

const Ancestor = {
setup() {
Expand Down
12 changes: 7 additions & 5 deletions translated/es-ES/website/docs/vue-intl.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ values={[
<TabItem value="npm">

```sh
npm i -S @formatjs/vue-intl
npm i -S vue-intl
```

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

```sh
yarn add -S @formatjs/vue-intl
yarn add -S vue-intl
```

</TabItem>
Expand All @@ -37,7 +37,7 @@ yarn add -S @formatjs/vue-intl
Initialize `VueIntl` plugin with the same `IntlConfig` documented in [@formatjs/intl](./intl.md#IntlShape).

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'

const app = createApp(App)
app.use(VueIntl, {
Expand All @@ -61,7 +61,7 @@ We also support Vue's [Composition API](https://composition-api.vuejs.org/) with

```ts
import {createIntl} from '@formatjs/intl'
import {provideIntl, useIntl} from '@formatjs/vue-intl'
import {provideIntl, useIntl} from 'vue-intl'

const Ancestor = {
setup() {
Expand Down Expand Up @@ -120,10 +120,12 @@ See [@formatjs/intl](./intl.md) for the full list of API signatures.

## Tooling

We're actively working on adding `vue` support for formatjs toolchain. Currently the following tools are supported:
`formatjs` toolchain fully supports `vue`:

- [eslint-plugin-formatjs](./tooling/linter.md): This fully supports `.vue` and JS/TS.
- [@formatjs/cli](./tooling/cli.md): We now support extracting messages from `.vue` SFC files.
- [babel-plugin-formatjs](./tooling/babel-plugin.md): Compile messages during bundling for `babel`.
- [@formatjs/ts-transformer](./tooling/ts-transformer.md): Compile messages during bundling for `TypeScript`.

## Caveats

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Output
<TabItem value="vue">

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'
import {createApp} from 'vue'

const app = createApp(App)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function bootstrapApplication(locale, mainDiv) {
<TabItem value="vue">

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'
import {createApp} from 'vue'

function loadLocaleData(locale: string) {
Expand Down
4 changes: 2 additions & 2 deletions translated/fr-FR/website/docs/guides/distribute-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function MyFeature(props: Props) {
<TabItem value="vue">

```ts
import {useIntl} from '@formatjs/vue-intl'
import {useIntl} from 'vue-intl'

const MyFeature = {
setup() {
Expand All @@ -161,7 +161,7 @@ or passing down via `provideIntl`

```ts
import {createIntl} from '@formatjs/intl'
import {provideIntl, useIntl} from '@formatjs/vue-intl'
import {provideIntl, useIntl} from 'vue-intl'

const Ancestor = {
setup() {
Expand Down
12 changes: 7 additions & 5 deletions translated/fr-FR/website/docs/vue-intl.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ values={[
<TabItem value="npm">

```sh
npm i -S @formatjs/vue-intl
npm i -S vue-intl
```

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

```sh
yarn add -S @formatjs/vue-intl
yarn add -S vue-intl
```

</TabItem>
Expand All @@ -37,7 +37,7 @@ yarn add -S @formatjs/vue-intl
Initialize `VueIntl` plugin with the same `IntlConfig` documented in [@formatjs/intl](./intl.md#IntlShape).

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'

const app = createApp(App)
app.use(VueIntl, {
Expand All @@ -61,7 +61,7 @@ We also support Vue's [Composition API](https://composition-api.vuejs.org/) with

```ts
import {createIntl} from '@formatjs/intl'
import {provideIntl, useIntl} from '@formatjs/vue-intl'
import {provideIntl, useIntl} from 'vue-intl'

const Ancestor = {
setup() {
Expand Down Expand Up @@ -120,10 +120,12 @@ See [@formatjs/intl](./intl.md) for the full list of API signatures.

## Tooling

We're actively working on adding `vue` support for formatjs toolchain. Currently the following tools are supported:
`formatjs` toolchain fully supports `vue`:

- [eslint-plugin-formatjs](./tooling/linter.md): This fully supports `.vue` and JS/TS.
- [@formatjs/cli](./tooling/cli.md): We now support extracting messages from `.vue` SFC files.
- [babel-plugin-formatjs](./tooling/babel-plugin.md): Compile messages during bundling for `babel`.
- [@formatjs/ts-transformer](./tooling/ts-transformer.md): Compile messages during bundling for `TypeScript`.

## Caveats

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Output
<TabItem value="vue">

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'
import {createApp} from 'vue'

const app = createApp(App)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function bootstrapApplication(locale, mainDiv) {
<TabItem value="vue">

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'
import {createApp} from 'vue'

function loadLocaleData(locale: string) {
Expand Down
4 changes: 2 additions & 2 deletions translated/ja-JP/website/docs/guides/distribute-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function MyFeature(props: Props) {
<TabItem value="vue">

```ts
import {useIntl} from '@formatjs/vue-intl'
import {useIntl} from 'vue-intl'

const MyFeature = {
setup() {
Expand All @@ -161,7 +161,7 @@ or passing down via `provideIntl`

```ts
import {createIntl} from '@formatjs/intl'
import {provideIntl, useIntl} from '@formatjs/vue-intl'
import {provideIntl, useIntl} from 'vue-intl'

const Ancestor = {
setup() {
Expand Down
12 changes: 7 additions & 5 deletions translated/ja-JP/website/docs/vue-intl.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ values={[
<TabItem value="npm">

```sh
npm i -S @formatjs/vue-intl
npm i -S vue-intl
```

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

```sh
yarn add -S @formatjs/vue-intl
yarn add -S vue-intl
```

</TabItem>
Expand All @@ -37,7 +37,7 @@ yarn add -S @formatjs/vue-intl
Initialize `VueIntl` plugin with the same `IntlConfig` documented in [@formatjs/intl](./intl.md#IntlShape).

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'

const app = createApp(App)
app.use(VueIntl, {
Expand All @@ -61,7 +61,7 @@ We also support Vue's [Composition API](https://composition-api.vuejs.org/) with

```ts
import {createIntl} from '@formatjs/intl'
import {provideIntl, useIntl} from '@formatjs/vue-intl'
import {provideIntl, useIntl} from 'vue-intl'

const Ancestor = {
setup() {
Expand Down Expand Up @@ -120,10 +120,12 @@ See [@formatjs/intl](./intl.md) for the full list of API signatures.

## Tooling

We're actively working on adding `vue` support for formatjs toolchain. Currently the following tools are supported:
`formatjs` toolchain fully supports `vue`:

- [eslint-plugin-formatjs](./tooling/linter.md): This fully supports `.vue` and JS/TS.
- [@formatjs/cli](./tooling/cli.md): We now support extracting messages from `.vue` SFC files.
- [babel-plugin-formatjs](./tooling/babel-plugin.md): Compile messages during bundling for `babel`.
- [@formatjs/ts-transformer](./tooling/ts-transformer.md): Compile messages during bundling for `TypeScript`.

## Caveats

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Output
<TabItem value="vue">

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'
import {createApp} from 'vue'

const app = createApp(App)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function bootstrapApplication(locale, mainDiv) {
<TabItem value="vue">

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'
import {createApp} from 'vue'

function loadLocaleData(locale: string) {
Expand Down
4 changes: 2 additions & 2 deletions translated/pt-PT/website/docs/guides/distribute-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function MyFeature(props: Props) {
<TabItem value="vue">

```ts
import {useIntl} from '@formatjs/vue-intl'
import {useIntl} from 'vue-intl'

const MyFeature = {
setup() {
Expand All @@ -161,7 +161,7 @@ or passing down via `provideIntl`

```ts
import {createIntl} from '@formatjs/intl'
import {provideIntl, useIntl} from '@formatjs/vue-intl'
import {provideIntl, useIntl} from 'vue-intl'

const Ancestor = {
setup() {
Expand Down
12 changes: 7 additions & 5 deletions translated/pt-PT/website/docs/vue-intl.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ values={[
<TabItem value="npm">

```sh
npm i -S @formatjs/vue-intl
npm i -S vue-intl
```

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

```sh
yarn add -S @formatjs/vue-intl
yarn add -S vue-intl
```

</TabItem>
Expand All @@ -37,7 +37,7 @@ yarn add -S @formatjs/vue-intl
Initialize `VueIntl` plugin with the same `IntlConfig` documented in [@formatjs/intl](./intl.md#IntlShape).

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'

const app = createApp(App)
app.use(VueIntl, {
Expand All @@ -61,7 +61,7 @@ We also support Vue's [Composition API](https://composition-api.vuejs.org/) with

```ts
import {createIntl} from '@formatjs/intl'
import {provideIntl, useIntl} from '@formatjs/vue-intl'
import {provideIntl, useIntl} from 'vue-intl'

const Ancestor = {
setup() {
Expand Down Expand Up @@ -120,10 +120,12 @@ See [@formatjs/intl](./intl.md) for the full list of API signatures.

## Tooling

We're actively working on adding `vue` support for formatjs toolchain. Currently the following tools are supported:
`formatjs` toolchain fully supports `vue`:

- [eslint-plugin-formatjs](./tooling/linter.md): This fully supports `.vue` and JS/TS.
- [@formatjs/cli](./tooling/cli.md): We now support extracting messages from `.vue` SFC files.
- [babel-plugin-formatjs](./tooling/babel-plugin.md): Compile messages during bundling for `babel`.
- [@formatjs/ts-transformer](./tooling/ts-transformer.md): Compile messages during bundling for `TypeScript`.

## Caveats

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Output
<TabItem value="vue">

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'
import {createApp} from 'vue'

const app = createApp(App)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function bootstrapApplication(locale, mainDiv) {
<TabItem value="vue">

```tsx
import VueIntl from '@formatjs/vue-intl'
import VueIntl from 'vue-intl'
import {createApp} from 'vue'

function loadLocaleData(locale: string) {
Expand Down
4 changes: 2 additions & 2 deletions translated/zh-CN/website/docs/guides/distribute-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function MyFeature(props: Props) {
<TabItem value="vue">

```ts
import {useIntl} from '@formatjs/vue-intl'
import {useIntl} from 'vue-intl'

const MyFeature = {
setup() {
Expand All @@ -161,7 +161,7 @@ or passing down via `provideIntl`

```ts
import {createIntl} from '@formatjs/intl'
import {provideIntl, useIntl} from '@formatjs/vue-intl'
import {provideIntl, useIntl} from 'vue-intl'

const Ancestor = {
setup() {
Expand Down
Loading

0 comments on commit ab68783

Please sign in to comment.