[Feat] Keep interpolation code in marked texts #89
Labels
Feature Request
New functionality the app doesn't provide yet
Size: Small
Probably less than 1 week of work
Problem Statement
Currently, when marking a text with interpolation code like
"\(self.activity.sessions.count.formatted()) sessions"
, a developer needs to replace the interpolated String in the Add Translation Window with something like%@
and finishing the add workflow, the interpolation code disappears (and needs to be copied via version control history if existent).Suggested Solution
Automatically detect interpolation code and keep the code while still providing users with an option to choose the type (String/Int/Double) and when finalizing the add workflow, automatically paste back in the code to get the value instead of using placeholders for the parameters.
Additional Considerations
As a first step, it could also be possible to only remember the interpolation code without an extra String/Int/Double dropdown to simplify UI but still solve the issue.
The text was updated successfully, but these errors were encountered: