.strings
format is used to surface text in iOS applications. If you’re fetching this format via the API, it will have an HTTP Content-Type
header of text/plain
.
Example:
?format=ios-strings
.
To fetch this via the CLI, specify format: ios-strings
in the config.yml
file.
Format details:
.stringsdict
format (see below) in conjunction with the .strings
format..stringsdict
format is used to surface plural form text in iOS applications; text without pluralization enabled in Ditto is excluded from output.
For integrating strings that are not pluralized, you should use .stringsdict
in conjunction with iOS .strings
.
If you’re fetching this format via the API, it will have an HTTP Content-Type
header of text/xml
.
Example:
?format=ios-stringsdict
.
To fetch this via the CLI, specify format: ios-stringsdict
in the config.yml
file.
Format details:
The order in which variables are provided as arguments in Swift is relevant to the output. The following code could be used with the example output above:
<!-- Variables: variable_one, variable_two, ... -->
is included above each key in the .stringsdict
file to indicate the order in which variables should be passed (this will always be alphabetical)..strings
and .stringsdict
files