Skip to content

Commit f8d175b

Browse files
committed
fix: textlint errors
1 parent 9fe0815 commit f8d175b

File tree

3 files changed

+43
-15
lines changed

3 files changed

+43
-15
lines changed

docs/advanced/function.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For example, suppose you want to handle the following message in French:
99
- Manger de la soupe
1010
- Manger une pomme
1111
- Manger du pain
12-
- Manger de l'orge
12+
- Manger de lorge
1313

1414
As you can see, the article preceding the noun will vary based on gender and phonetics.
1515

@@ -34,7 +34,7 @@ const messages = {
3434
}
3535
```
3636

37-
The message function accept the **Message context** as the first argument, which has several props and functions. We'll explain how to use it in the following sections, so let's go on.
37+
The message function accept the **Message context** as the first argument, which has several props and functions. Well explain how to use it in the following sections, so lets go on.
3838

3939
The use of the message function is very easy! You just specify the key of the message function with `$t` or `t`:
4040

@@ -67,7 +67,7 @@ const messages = {
6767
}
6868
```
6969

70-
If you haven't already, it's recommended to read through the [Vue render function](https://v3.vuejs.org/guide/render-function.html#the-dom-tree) before diving into message functions.
70+
If you havent already, its recommended to read through the [Vue render function](https://v3.vuejs.org/guide/render-function.html#the-dom-tree) before diving into message functions.
7171
:::
7272

7373
## Named interpolation

examples/composition/functions/linked.html

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,19 @@
3434
the_world: 'the world',
3535
dio: 'DIO:',
3636
// '@:message.dio @:message.the_world !!!!'
37-
linked: ({ linked }) => `${linked('message.dio')} ${linked('message.the_world')} !!!!`,
37+
linked: ({ linked }) =>
38+
`${linked('message.dio')} ${linked('message.the_world')} !!!!`,
3839
homeAddress: 'Home address',
3940
// 'Please provide @.lower:message.homeAddress'
40-
missingHomeAddress: ({ linked }) => `Please provide ${linked('message.homeAddress', 'lower')}`,
41+
missingHomeAddress: ({ linked }) =>
42+
`Please provide ${linked('message.homeAddress', 'lower')}`,
4143
snake: 'snake case',
4244
// "custom modifiers example: @.snakeCase:{'message.snake'}"
43-
custom_modifier: ({ linked }) => `custom modifiers example: ${linked('message.snake', 'snakeCase')}`
45+
custom_modifier: ({ linked }) =>
46+
`custom modifiers example: ${linked(
47+
'message.snake',
48+
'snakeCase'
49+
)}`
4450
}
4551
},
4652
ja: {
@@ -49,13 +55,21 @@
4955
the_world: 'ザ・ワールド',
5056
dio: 'ディオ:',
5157
// '@:message.dio @:message.the_world !!!!'
52-
linked: ({ linked }) => `${linked('message.dio')} ${linked('message.the_world')} !!!!`,
58+
linked: ({ linked }) =>
59+
`${linked('message.dio')} ${linked(
60+
'message.the_world'
61+
)} !!!!`,
5362
homeAddress: 'ホームアドレス',
5463
// 'どうか、@.lower:message.homeAddress を提供してください。'
55-
missingHomeAddress: ({ linked }) => `どうか、${linked('message.homeAddress', 'lower')} を提供してください。`,
64+
missingHomeAddress: ({ linked }) =>
65+
`どうか、${linked(
66+
'message.homeAddress',
67+
'lower'
68+
)} を提供してください。`,
5669
snake: 'スネーク ケース',
5770
// "カスタム修飾子の例: @.snakeCase:{'message.snake'}"
58-
custom_modifier: ({ linked }) => `カスタム修飾子の例: ${linked('message.snake', 'snakeCase')}`
71+
custom_modifier: ({ linked }) =>
72+
`カスタム修飾子の例: ${linked('message.snake', 'snakeCase')}`
5973
}
6074
}
6175
},

examples/legacy/functions/linked.html

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,19 @@
3333
the_world: 'the world',
3434
dio: 'DIO:',
3535
// '@:message.dio @:message.the_world !!!!'
36-
linked: ({ linked }) => `${linked('message.dio')} ${linked('message.the_world')} !!!!`,
36+
linked: ({ linked }) =>
37+
`${linked('message.dio')} ${linked('message.the_world')} !!!!`,
3738
homeAddress: 'Home address',
3839
// 'Please provide @.lower:message.homeAddress'
39-
missingHomeAddress: ({ linked }) => `Please provide ${linked('message.homeAddress', 'lower')}`,
40+
missingHomeAddress: ({ linked }) =>
41+
`Please provide ${linked('message.homeAddress', 'lower')}`,
4042
snake: 'snake case',
4143
// "custom modifiers example: @.snakeCase:{'message.snake'}"
42-
custom_modifier: ({ linked }) => `custom modifiers example: ${linked('message.snake', 'snakeCase')}`
44+
custom_modifier: ({ linked }) =>
45+
`custom modifiers example: ${linked(
46+
'message.snake',
47+
'snakeCase'
48+
)}`
4349
}
4450
},
4551
ja: {
@@ -48,13 +54,21 @@
4854
the_world: 'ザ・ワールド',
4955
dio: 'ディオ:',
5056
// '@:message.dio @:message.the_world !!!!'
51-
linked: ({ linked }) => `${linked('message.dio')} ${linked('message.the_world')} !!!!`,
57+
linked: ({ linked }) =>
58+
`${linked('message.dio')} ${linked(
59+
'message.the_world'
60+
)} !!!!`,
5261
homeAddress: 'ホームアドレス',
5362
// 'どうか、@.lower:message.homeAddress を提供してください。'
54-
missingHomeAddress: ({ linked }) => `どうか、${linked('message.homeAddress', 'lower')} を提供してください。`,
63+
missingHomeAddress: ({ linked }) =>
64+
`どうか、${linked(
65+
'message.homeAddress',
66+
'lower'
67+
)} を提供してください。`,
5568
snake: 'スネーク ケース',
5669
// "カスタム修飾子の例: @.snakeCase:{'message.snake'}"
57-
custom_modifier: ({ linked }) => `カスタム修飾子の例: ${linked('message.snake', 'snakeCase')}`
70+
custom_modifier: ({ linked }) =>
71+
`カスタム修飾子の例: ${linked('message.snake', 'snakeCase')}`
5872
}
5973
}
6074
},

0 commit comments

Comments
 (0)