chore: use translate instead of L._ in facets module
This commit is contained in:
parent
37e0582b30
commit
a1d78437d5
1 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ export default class Facets {
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
value = value || L._('<empty value>')
|
value = value || translate('<empty value>')
|
||||||
if (!properties[name].choices.includes(value)) {
|
if (!properties[name].choices.includes(value)) {
|
||||||
properties[name].choices.push(value)
|
properties[name].choices.push(value)
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ export default class Facets {
|
||||||
'h3',
|
'h3',
|
||||||
'umap-filter-title',
|
'umap-filter-title',
|
||||||
container,
|
container,
|
||||||
L._('Facet search')
|
translate('Facet search')
|
||||||
)
|
)
|
||||||
const defined = this.getDefined()
|
const defined = this.getDefined()
|
||||||
const names = Object.keys(defined)
|
const names = Object.keys(defined)
|
||||||
|
@ -82,7 +82,7 @@ export default class Facets {
|
||||||
// TODO: display a results counter in the panel instead.
|
// TODO: display a results counter in the panel instead.
|
||||||
if (!found) {
|
if (!found) {
|
||||||
this.map.ui.alert({
|
this.map.ui.alert({
|
||||||
content: L._('No results for these facets'),
|
content: translate('No results for these facets'),
|
||||||
level: 'info',
|
level: 'info',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue