Skip to content

Commit

Permalink
Add missing locales for product attributes (#17558)
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee authored Dec 10, 2024
2 parents 60c140a + 0e675d6 commit 18854f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ sylius_twig_hooks:
priority: 0

'sylius_admin.product.create.content.form.sections.attributes.list.translations.field':
language:
template: '@SyliusAdmin/product/form/sections/attributes/list/translations/field/language.html.twig'
priority: 200
label:
template: '@SyliusAdmin/product/form/sections/attributes/list/translations/field/label.html.twig'
priority: 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ sylius_twig_hooks:
priority: 0

'sylius_admin.product.update.content.form.sections.attributes.list.translations.field':
language:
template: '@SyliusAdmin/product/form/sections/attributes/list/translations/field/language.html.twig'
priority: 200
label:
template: '@SyliusAdmin/product/form/sections/attributes/list/translations/field/label.html.twig'
priority: 100
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% set locale = hookable_metadata.context.locale_code|default(null) %}

{% if locale is not null %}
<span>{{ locale|sylius_locale_name }}</span>
{% endif %}

0 comments on commit 18854f5

Please sign in to comment.