Merge pull request #10907 from jibees/3041-missing-translation-in-product-variant-selection-upon-order-creation

Admin, Create an order, Select a product: translate some messages in the product selection search box
This commit is contained in:
Konrad
2023-06-12 17:08:52 +02:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -10,6 +10,12 @@ angular.module("admin.utils").directive "variantAutocomplete", ($timeout) ->
element.select2
placeholder: t('admin.orders.select_variant')
minimumInputLength: 3
formatInputTooShort: ->
t('admin.select2.minimal_search_length', count: 3)
formatSearching: ->
t('admin.select2.searching')
formatNoMatches: ->
t('admin.select2.no_matches')
ajax:
url: Spree.routes.variants_search
datatype: "json"

View File

@@ -1402,6 +1402,10 @@ en:
resume:
could_not_resume_the_order: Could not resume the order
select2:
minimal_search_length: Please enter %{count} or more characters
searching: Searching...
no_matches: No matches found
shared:
user_guide_link:
user_guide: User Guide