Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Keep interpolation code in marked texts #89

Open
Jeehut opened this issue Mar 14, 2023 · 0 comments
Open

[Feat] Keep interpolation code in marked texts #89

Jeehut opened this issue Mar 14, 2023 · 0 comments
Assignees
Labels
Feature Request New functionality the app doesn't provide yet Size: Small Probably less than 1 week of work

Comments

@Jeehut
Copy link
Member

Jeehut commented Mar 14, 2023

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.

@Jeehut Jeehut added the Feature Request New functionality the app doesn't provide yet label Mar 14, 2023
@Jeehut Jeehut self-assigned this Mar 14, 2023
@Jeehut Jeehut added the Size: Small Probably less than 1 week of work label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New functionality the app doesn't provide yet Size: Small Probably less than 1 week of work
Projects
None yet
Development

No branches or pull requests

1 participant