mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-21 01:29:33 +00:00
Create frontend translation files and update configuration
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
This commit is contained in:
parent
8eb07caca4
commit
8400f3ed21
18 changed files with 956 additions and 9 deletions
|
|
@ -79,9 +79,9 @@ export default class extends Controller {
|
|||
panelPlacement: this.element.dataset.panelPlacement,
|
||||
plugins: [recentSearchesPlugin],
|
||||
openOnFocus: true,
|
||||
placeholder: trans("search.placeholder"),
|
||||
placeholder: trans("search.placeholder", {}, 'frontend'),
|
||||
translations: {
|
||||
submitButtonTitle: trans("search.submit")
|
||||
submitButtonTitle: trans("search.submit", {}, 'frontend')
|
||||
},
|
||||
|
||||
// Use a navigator compatible with turbo:
|
||||
|
|
@ -150,7 +150,7 @@ export default class extends Controller {
|
|||
},
|
||||
templates: {
|
||||
header({ html }) {
|
||||
return html`<span class="aa-SourceHeaderTitle">${trans("part.labelp")}</span>
|
||||
return html`<span class="aa-SourceHeaderTitle">${trans("part.labelp", {}, 'frontend')}</span>
|
||||
<div class="aa-SourceHeaderLine" />`;
|
||||
},
|
||||
item({item, components, html}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue