Variables

autoglot preserves all format specifiers and variable substitutions during translation.

Supported format specifiers

SpecifierDescription
%@Object (String, etc.)
%d, %iInteger
%lldLong integer
%fFloating point
%1$@, %2$@Positional arguments

String interpolation

Swift string interpolation syntax is also preserved:

yaml
"Hello, \(name)!" → "Hallo, \(name)!"
"You have \(count) messages" → "Sie haben \(count) Nachrichten"