From 51da66dbff4a66d53e2a471455a79960f1dbf133 Mon Sep 17 00:00:00 2001 From: Alexandre David Date: Thu, 9 Apr 2020 11:57:43 +0200 Subject: [PATCH] Add capitalize default modifier in doc --- docs/guide/messages.html | 2 +- vuepress/guide/messages.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/guide/messages.html b/docs/guide/messages.html index 20a14ff85..d43343f3a 100644 --- a/docs/guide/messages.html +++ b/docs/guide/messages.html @@ -106,7 +106,7 @@

Template:

<p>{{ $t('message.linked') }}</p>
 

Output:

<p>DIO: the world !!!!</p>
 

Formatting linked locale messages

If the language distinguish cases of character, you may need control the case of the linked locale messages. -Linked messages can be formatted with modifier @.modifier:key

The below modifiers are available currently.

Locale messages the below:

const messages = {
+Linked messages can be formatted with modifier  @.modifier:key

The below modifiers are available currently.

  • upper: Uppercase all characters in the linked message.
  • lower: Lowercase all characters in the linked message.
  • capitalize: Capitalize the first character in the linked message.

Locale messages the below:

const messages = {
   en: {
     message: {
       homeAddress: 'Home address',
diff --git a/vuepress/guide/messages.md b/vuepress/guide/messages.md
index 521f859aa..bc2d01f2c 100644
--- a/vuepress/guide/messages.md
+++ b/vuepress/guide/messages.md
@@ -112,6 +112,7 @@ The below modifiers are available currently.
 
 * `upper`: Uppercase all characters in the linked message.
 * `lower`: Lowercase all characters in the linked message.
+* `capitaize`: Capitalize the first character in the linked message.
 
 Locale messages the below: