mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-04 06:32:23 +03:00
update docs
This commit is contained in:
@@ -342,6 +342,29 @@ label: {
|
||||
},
|
||||
```
|
||||
|
||||
## locale <Badge text="v3.13.0+" />
|
||||
|
||||
The locale function receives the default english translations object for the component. This allows
|
||||
you to override the whole object, or change just the values you need. Can be used to localize the
|
||||
component to different languages, or just replace text to your liking throughout the component.
|
||||
|
||||
See [localization guide](/guide/localization.html) for more details and examples.
|
||||
|
||||
```js
|
||||
/**
|
||||
* @since 3.13.0
|
||||
* @see https://vue-select.org/guide/localization.html
|
||||
*/
|
||||
locale: {
|
||||
type: Function,
|
||||
/**
|
||||
* @return {Object}
|
||||
* @param localeStrings
|
||||
*/
|
||||
default: (localeStrings) => localeStrings,
|
||||
},
|
||||
```
|
||||
|
||||
|
||||
## maxHeight
|
||||
|
||||
|
||||
Reference in New Issue
Block a user