From 8e5b62b81f9c4591e16c023ebc6ccaf11b3e458e Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Tue, 7 Dec 2021 02:42:29 +0100 Subject: [PATCH] Fix unordered list formatting in docs (#274) * Fix unordered list formatting in docs * format Co-authored-by: Yosuke Ota --- docs/started.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/started.md b/docs/started.md index cdc7fe56..3f0390f9 100644 --- a/docs/started.md +++ b/docs/started.md @@ -79,7 +79,6 @@ See [the rule list](../rules/) ### `settings['vue-i18n']` - `localeDir` ... You can specify a string or an object or an array. - - String option ... A glob for specifying files that store localization messages of project. - Object option - `pattern` (`string`) ... A glob for specifying files that store localization messages of project. @@ -87,9 +86,8 @@ See [the rule list](../rules/) - `'file'` ... Determine the locale name from the filename. The resource file should only contain messages for that locale. Use this option if you use `vue-cli-plugin-i18n`. This option is also used when String option is specified. - `'path'` ... Determine the locale name from the path. In this case, the locale must be had structured with your rule on the path. It can be captured with the regular expression named capture. The resource file should only contain messages for that locale. - `'key'` ... Determine the locale name from the root key name of the file contents. The value of that key should only contain messages for that locale. Used when the resource file is in the format given to the `messages` option of the `VueI18n` constructor option. - - `localePattern` ... Specifies how to determine pattern the locale for localization messages. This option means, when `localeKey` is `'path'`, you will need to capture the locale using a regular expression. You need to use the locale capture as a named capture `?`, so it’s be able to capture from the path of the locale resources. If you omit it, it will be captured from the resource path with the same regular expression pattern as `vue-cli-plugin-i18n`. - -- Array option ... An array of String option and Object option. Useful if you have multiple locale directories. + - `localePattern` ... Specifies how to determine pattern the locale for localization messages. This option means, when `localeKey` is `'path'`, you will need to capture the locale using a regular expression. You need to use the locale capture as a named capture `?`, so it’s be able to capture from the path of the locale resources. If you omit it, it will be captured from the resource path with the same regular expression pattern as `vue-cli-plugin-i18n`. + - Array option ... An array of String option and Object option. Useful if you have multiple locale directories. - `messageSyntaxVersion` (Optional) ... Specify the version of `vue-i18n` you are using. If not specified, the message will be parsed twice. Also, some rules require this setting. ::: warn NOTE