Closed florianreinhart closed 5 years ago
Hello @florianreinhart, thank you for taking the time to open an issue with your suggestion!
A few random thoughts:
Thanks for the suggestion! My gut says this might be a bit of feature bloat, especially when you consider how this would affect localization and translation efforts using the standard twine workflows. You can already kinda do this by using a bit of code and string formatting.
[APP_NAME]
en = My Awesome App
[THANK_YOU_TEXT]
en = Thank you for using %@
[RATING_TEXT]
en = Rate %@
let appName = NSLocalizedString("APP_NAME")
let text = NSLocalizedString("THANK_YOU_TEXT", appName)
It would be great to use other keys inside localization strings, e.g.
The generated .strings file should look like this:
The interpolation syntax is taken from Swift. We could also use
${KEY}
or something else.