Skip to content

Commit

Permalink
add more text to i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Jul 2, 2024
1 parent 1051037 commit 6f65ff1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export class AdditionalItemEdit extends LitElement {
${this.#form.field({name: `availabilityAndPrices.maxQtyPerOrder`},
(field) => {
return html`
<sl-input required .value=${field.state.value} label=${msg(str`Max quantity per ${this.type === 'DONATION' || formValue.supplementPolicy === 'OPTIONAL_MAX_AMOUNT_PER_RESERVATION' ? 'order' : 'ticket'}`)} @sl-input=${(e: InputEvent) => notifyChange(e, field)}></sl-input>
<sl-input required .value=${field.state.value} label=${msg(str`Max quantity per ${this.type === 'DONATION' || formValue.supplementPolicy === 'OPTIONAL_MAX_AMOUNT_PER_RESERVATION' ? msg('order') : msg('ticket')}`)} @sl-input=${(e: InputEvent) => notifyChange(e, field)}></sl-input>
`
})}
`
Expand Down
2 changes: 2 additions & 0 deletions frontend/admin/src/generated/locales/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
's255169c55655cada': `Min price`,
'se11cda5867361c84': `Max price`,
's6d604b9dc12aeabb': str`Max quantity per ${0}`,
's6be60d7281a829f7': `order`,
's7bd70f38875a4245': `ticket`,
's63a96d942e6031eb': `Total available quantity`,
's902283dfce75a674': `Your account has been deleted`,
'saf7a91f4fd57c858': `We're very sorry to see you go!`,
Expand Down
8 changes: 7 additions & 1 deletion frontend/admin/xliff/it.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,20 @@
<source>Max price</source>
</trans-unit>
<trans-unit id="s6d604b9dc12aeabb">
<source>Max quantity per <x id="0" equiv-text="${this.type === 'DONATION' || formValue.supplementPolicy === 'OPTIONAL_MAX_AMOUNT_PER_RESERVATION' ? 'order' : 'ticket'}"/></source>
<source>Max quantity per <x id="0" equiv-text="${this.type === 'DONATION' || formValue.supplementPolicy === 'OPTIONAL_MAX_AMOUNT_PER_RESERVATION' ? msg('order') : msg('ticket')}"/></source>
</trans-unit>
<trans-unit id="s63a96d942e6031eb">
<source>Total available quantity</source>
</trans-unit>
<trans-unit id="s417b90913e05bc17">
<source>Preview</source>
</trans-unit>
<trans-unit id="s6be60d7281a829f7">
<source>order</source>
</trans-unit>
<trans-unit id="s7bd70f38875a4245">
<source>ticket</source>
</trans-unit>
</body>
</file>
</xliff>

0 comments on commit 6f65ff1

Please sign in to comment.