Skip to content

Add support for concatenating values by keys #36

@Kortvk

Description

@Kortvk

Introduce the ability to construct strings using existing keys. Example:

[key_1]
  en = value 1
[key_2]
  en = value 2
[key_3]
  en = %ref(key_1) some text %ref(key_2)

Further consideration is needed on how to handle situations where key_1 and key_2 have formatting. In such cases, it can be resolved as follows:

[key_1]
  en = text 1.1 %2$s text 1.2 %1$s
[key_2]
  en = text 2.1 %2$s text 2.2 %1$s
[key_3]
  en = %ref(key_1, 1, 2) some text %ref(key_2, 3, 4)

Where the values after the key name indicate the order of the passed values to ensure consistency regardless of the formatting used within the keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions