[MAGNOLIA-7866] I18nText fallback as I18n key Created: 20/Aug/20  Updated: 01/Sep/20  Resolved: 20/Aug/20

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.3

Type: Improvement Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MAGNOLIA-7778 Implement @I18nText fallback parameter Closed
dependency
is depended upon by MGNLUI-6101 New Multivalue field: missing properties Closed
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)

 Description   

The fallback can be now used like this:

    @I18nText(fallback = "")
    default String getButtonSelectAddLabel() {
        return null;
    }

It could be much more powerful if we allow this

    @I18nText(fallback = "buttons.add")
    default String getButtonSelectAddLabel() {
        return null;
    }

Generated at Mon Feb 12 04:27:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.