[CONTEDIT-469] Improve i18n Block Key generator Created: 07/Dec/21  Updated: 26/Aug/22

Status: Open
Project: Content Editor
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Quach Hao Thien Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: Content Editor later
Team: AuthorX

 Description   

Current the BlockDefinition (the type of block) applies BlockKeyGenerator, whereas BlockFieldDefinition (the field of block) inherits EditorPropertyDefinitionKeyGenerator, that leads to un-unify in generate key for block type and field.
E.g: To define property for a Text block:
block.text.label=Text << This is block type name
blocks.text=Text << This is block field name of the text block

AC:
Investigate to define a proper KeyGenerator which could self-explain the hierarchy of block and block field

block definition name block property name i18n field keys
text block text label text.block.text.label,
block.text.label,
text.text.label,
text.label

or using EditorPropertyDefinitionKeyGenerator for both BlockDefinition and BlockFieldDefinition


Generated at Mon Feb 12 00:20:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.