Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #56 from panter/docs/i18n-tag-update
Browse files Browse the repository at this point in the history
docs: update i18n tag usage
  • Loading branch information
claudiocro authored Jan 23, 2019
2 parents c0a66b1 + 1e143c8 commit 3c9a691
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions docs/guide/single-file-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,16 @@
by [@kazupon](https://github.com/kazupon)

```html
<i18n>
{
"en": {
"hello": "hello world!"
}
}
</i18n>
<i18n> { "en": { "hello": "hello world!" } } </i18n>

<template>
<div id="app">
<p>message: {{ $t('hello') }}</p>
</div>
<div id="app"><p>message: {{ $t('hello') }}</p></div>
</template>

<script>
export default {
name: 'app',
}
name: "app"
};
</script>
```

Expand All @@ -32,7 +24,10 @@ To be able to use the `<i18>` you need to use the vue-loader:
npm install @kazupon/vue-i18n-loader --save-dev
```

For a detailed documentation check the original [docs here](https://github.com/kazupon/vue-i18n-loader).

```
// vue-loader (~v14.x):
module.exports = {
// ...
module: {
Expand Down Expand Up @@ -61,12 +56,7 @@ npm install yaml-loader --save-dev
```

```html
<i18n>

en:
hello: "hello world!"

</i18n>
<i18n> en: hello: "hello world!" </i18n>
```

```javascript
Expand Down

0 comments on commit 3c9a691

Please sign in to comment.