Variables
autoglot preserves all format specifiers and variable substitutions during translation.
Supported format specifiers
| Specifier | Description |
|---|---|
%@ | Object (String, etc.) |
%d, %i | Integer |
%lld | Long integer |
%f | Floating 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"