2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-16 09:10:33 +03:00
Files
vue-select/src/mixins/i18n.js
T
2021-08-01 12:32:22 -07:00

41 lines
613 B
JavaScript

export const text = {
spinner: {
text: 'Loading...',
},
noOptions: {
text: 'Sorry, no matching options.',
},
search: {
ariaLabel: 'Search for options',
},
selectedOption: {},
deselectButton: {
ariaLabel: (label) => 'Deselect Option',
},
clearButton: {
ariaLabel: 'Clear Selection',
},
}
/**
* @this VueSelect
* @mixin
*/
export default {
props: {
text: {
type: Function,
/**
* @param text {Object}
* @return {*}
*/
default: (text) => text,
},
},
computed: {
i18n() {
return this.text(text)
},
},
}