Skip to content

Commit ad0d372

Browse files
committed
docs: tweaks
1 parent f90edbe commit ad0d372

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/advanced/component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,6 @@ You can also use the following slots shorthand in templates:
183183
</div>
184184
```
185185

186-
:::warning Limitation
186+
:::warning LIMITATION
187187
:warning: In `i18n-t` component, slots props are not supported.
188188
:::

docs/advanced/sfc.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ To use i18n custom blocks, you need to use the following plugins for bundler.
5454

5555
[vue-i18n-loader](https://github.com/intlify/vue-i18n-loader) is loader plugin for [webpack](https://webpack.js.org/). Since single file components is bundled with [vue-loader](https://github.com/vuejs/vue-loader), you need to setting webpack config with vue-i18n-loader.
5656

57-
:::tip Support Version
57+
:::tip NOTE
5858
- webpack: **v4 or later**
5959
- vue-loader: **v16 or later**.
6060
:::
@@ -97,7 +97,7 @@ module.exports = {
9797

9898
[rollup-plugin-vue-i18n](https://github.com/intlify/rollup-plugin-vue-i18n) is rollup plugin for [rollup](https://rollupjs.org). Since single-file components is bundled with [rollup-plugin-vue](https://github.com/vuejs/rollup-plugin-vue), you need to setting rollup config with rollup-plugin-vue
9999

100-
:::tip Support Version
100+
:::tip NOTE
101101
- rollup: **v2.32 or later**
102102
- rollup-plugin-vue: **v6 or later**.
103103
:::
@@ -146,7 +146,7 @@ export default [
146146

147147
[vite-plugin-vue-i18n](https://github.com/intlify/vite-plugin-vue-i18n) is vite plugin for [Vite](https://github.com/vitejs/vite).
148148

149-
:::tip Support Version
149+
:::tip NOTE
150150
- vite: **v1 or later**.
151151
:::
152152

docs/essentials/scope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ As you can see, the global scope is very useful because it allows you to switch
8282

8383
If you want to switch the locale for the whole application, you need to change it via `global` property of i18n instance created with `createI18n`.
8484

85-
:::tip MEMO
85+
:::tip NOTE
8686
If you don’t want to inherit `locale` from global scope, you need to set `sync` of `i18n` component option to `false`.
8787
:::
8888

docs/essentials/syntax.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Vue I18n supports the message format that is compatible with [Ruby on Rails i18n
259259

260260
You can interpolate message format syntax with `%` prefixing:
261261

262-
:::danger Important!!
262+
:::danger IMPORTANT
263263
In v10 and later, Rails i18n format will be deprecated. We recommended using Named interpolation.
264264
:::
265265

@@ -295,13 +295,13 @@ As result, the below:
295295

296296
You can localize it with messages that contain HTML.
297297

298-
:::danger Danger
298+
:::danger DANGER
299299
:warning: Dynamically localizing arbitrary HTML on your site can be very dangerous because it can easily lead to XSS vulnerabilities. Only use HTML interpolation on trusted content and never on user-provided content.
300300

301301
We recommended using the [Component interpolation](../advanced/component).
302302
:::
303303

304-
:::warning Notice
304+
:::warning NOTICE
305305
If the message contains HTML, Vue I18n outputs a warning to console when development mode (`process.env.NODE_ENV !== 'production'`), Vue I18n outputs warning to console.
306306

307307
You can control warning output with the `warnHtmlInMessage` or `warnHtmlMessage` options in `createI18n` function or `useI18n` function.

0 commit comments

Comments
 (0)