Skip to content

Commit 35ae432

Browse files
committed
minor #3081 [Site] Fix UX Translator demo on "price" parameter (Kocal)
This PR was merged into the 2.x branch. Discussion ---------- [Site] Fix UX Translator demo on "price" parameter | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | no <!-- required for new features --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Spotted while working on #3080 Commits ------- 956611f [Site] Fix UX Translator demo on "price" parameter
2 parents 3027db8 + 956611f commit 35ae432

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ux.symfony.com/templates/ux_packages/translator.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,14 @@
158158
{% embed 'ux_packages/translator/_translator_demo_block.html.twig' with {
159159
message: 'VALUE_OF_OBJECT',
160160
parameters: {
161-
value: 30
161+
price: 30
162162
},
163163
} %}
164164
{% block parameters %}
165165
<div>
166-
<label for="VALUE_OF_OBJECT-value" class="small opacity-50">Value</label>
167-
<input id="VALUE_OF_OBJECT-value" class="form-control"
168-
name="value" type="number" min="1" value="30" step="0.1"
166+
<label for="VALUE_OF_OBJECT-price" class="small opacity-50">Price</label>
167+
<input id="VALUE_OF_OBJECT-price" class="form-control"
168+
name="price" type="number" min="1" value="30" step="0.1"
169169
data-translator-demo-block-target="parameters"
170170
data-action="translator-demo-block#render"
171171
>

ux.symfony.com/translations/messages+intl-icu.en.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ published_at: 'Published at {publication_date, date} - {publication_date, time,
3232

3333
# Numbers
3434
progress: '{progress, number, percent} of the work is done'
35-
value_of_object: 'This artifact is worth {value, number, ::currency/EUR}'
35+
value_of_object: 'This artifact is worth {price, number, ::currency/EUR}'

ux.symfony.com/translations/messages+intl-icu.fr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ published_at: 'Publié le {publication_date, date} - {publication_date, time, sh
3030

3131
# Numbers
3232
progress: '{progress, number, percent} du travail est fait'
33-
value_of_object: "Cet artéfact vaut {value, number, ::currency/EUR}"
33+
value_of_object: "Cet artéfact vaut {price, number, ::currency/EUR}"

0 commit comments

Comments
 (0)