corona-warn-app / cwa-app-ccl

Common Covid Logic (CCL) for Android and iOS
Apache License 2.0
7 stars 4 forks source link

Chore: introduce compound text keys #116

Open mlenkeit opened 1 year ago

mlenkeit commented 1 year ago

Texts components that are used multiple times can now be moved into a separate text key and referenced in a so-called compound text key. A compound text key must be of text type NOTR and thus will not be translated. In a compound text keys, other text keys can be included by referencing them with the syntax ${OTHER_TEXT_KEY}. The references are replaced at build time. Text that is not a reference is preserved. This allows for example to include line breaks, e.g. ${A}\n\n${B}.

Ein-Tim commented 1 year ago

This PR is obsolete. It can be closed.