mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Docs] add info about hardcoded translations
This commit is contained in:
parent
d01609931d
commit
d168928899
2 changed files with 17 additions and 0 deletions
|
|
@ -253,6 +253,14 @@ And define the translation for our new action type:
|
|||
action:
|
||||
fixed_price: 'Fixed price'
|
||||
|
||||
Translations
|
||||
------------
|
||||
|
||||
Translation keys for catalog promotion action are hardcoded to ``sylius.form.catalog_promotion.action.type`` where ``type`` is one of available catalog promotion actions:
|
||||
|
||||
- percentage_discount
|
||||
- fixed_discount
|
||||
|
||||
Prepare an action template for show page of catalog promotion
|
||||
-------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -189,6 +189,15 @@ In our case - we have a template ``by_phrase.html.twig`` which is first before o
|
|||
|
||||
This overriding will be suspect of change, so there won't be need for declaring ``default.html.twig`` template anymore.
|
||||
|
||||
Translations
|
||||
------------
|
||||
|
||||
Translation keys for catalog promotion scope are hardcoded to ``sylius.form.catalog_promotion.scope.type`` where ``type`` is one of available catalog promotion scopes:
|
||||
|
||||
- for_products
|
||||
- for_taxons
|
||||
- for_variants
|
||||
|
||||
Prepare a scope template for show page of catalog promotion
|
||||
-----------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue