@@ -13,6 +13,7 @@ This rule aims to enforces specific casing for localization key names.
13
13
``` yaml
14
14
camelCaseKey : The key for this value is camel case.
15
15
kebab-case-key : The key for this value is kebab case.
16
+ lowercase : The key for this value is lower case.
16
17
snake_case_key : The key for this value is snake case.
17
18
mixed_Case-key : Perhaps you don't want to use this casing.
18
19
` ` `
@@ -47,7 +48,7 @@ Also, the following localization key definitions are reported as errors, because
47
48
{
48
49
" @intlify/vue-i18n/key-format-style " : [
49
50
" error" ,
50
- " camelCase" | "kebab-case" | "snake_case",
51
+ " camelCase" | "kebab-case" | "lowercase" | " snake_case",
51
52
{
52
53
" allowArray " : false,
53
54
" splitByDots " : false
@@ -112,6 +113,32 @@ appTitle: I18N Management System
112
113
app_title : I18N Management System
113
114
` ` `
114
115
116
+ :+1: Examples of **correct** code for this rule with ` " lowercase" ` :
117
+
118
+ <eslint-code-block language="yaml">
119
+
120
+ ` ` ` yaml
121
+ # eslint @intlify/vue-i18n/key-format-style: ['error', 'lowercase']
122
+
123
+ # ✓ GOOD
124
+ apptitle : I18N Management System
125
+ ` ` `
126
+
127
+ </eslint-code-block>
128
+
129
+ :-1: Examples of **incorrect** code for this rule with ` " lowercase" ` :
130
+
131
+ <eslint-code-block language="yaml">
132
+
133
+ ` ` ` yaml
134
+ # eslint @intlify/vue-i18n/key-format-style: ['error', 'lowercase']
135
+
136
+ # ✗ BAD
137
+ appTitle : I18N Management System
138
+ app_title : I18N Management System
139
+ APP_TITLE : I18N Management System
140
+ ` ` `
141
+
115
142
</eslint-code-block>
116
143
117
144
:+1: Examples of **correct** code for this rule with ` " snake_case" ` :
0 commit comments