Not sure if this is possible. But I want to do this:
let version = "2.0.1"
let year = 2017
let version = "Build \(version), \(year)"
However, I want to source the version string from a localised file. ie.
let version = "2.0.1"
let year = 2017
let versionTemplate = NSLocalizedString("version.template", comment:"")
let version = ???? // Something done with versionTemplate
I've looked at using NSExpression
, but it's not obvious if it can do this or how.
Anyone does this?