In most cases we will properly export plurals and placeholders to the file format of your choice, however it is possible to override the default universal placeholder conversion behaviour and plural format export options. Use the table below to specify with the export parameters.
File format | Compatible plural formats | Compatible placeholder formats |
---|
android_sdk | generic | printf |
ios_sdk | generic | ios |
xml | generic | printf |
strings | generic | ios |
csv | json_string, icu | printf, ios, icu, net, i18n, raw |
xlsx | json_string, icu | printf, ios, icu, net, i18n, raw |
po | generic | printf, icu, raw |
properties | json_string, icu | printf, icu |
json | json_string, icu, symfony, array, i18next, i18next_v4 | printf, ios, icu, net, symfony, i18n, raw |
xliff | generic, json_string, icu | printf, ios, icu, raw |
plist | json_string, icu | printf, ios, icu |
resx | json_string, icu | net |
js | json_string, icu, symfony, array, i18next, i18next_v4 | printf, icu, symfony, i18n, raw |
react_native | json_string, icu, array | printf, ios, icu, i18n, raw |
symfony_xliff | json_string, icu, symfony | printf, icu, symfony, raw |
xlf | json_string, icu | printf, icu, raw |
php | json_string, icu, symfony, array | printf, icu, symfony, i18n, raw |
ini | json_string, icu | printf, icu |
ruby_yaml | json_string, icu, array | printf, icu |
yaml | json_string, icu, symfony, array | printf, icu, symfony, i18n, raw |
stf | json_string, icu | printf, icu |
ts | generic | printf, icu |
arb | icu | icu |
| |
---|
generic | Generic plural implementation of the selected file format |
json_string | {"one":"One user online","other":"%s users online"} |
icu | {index.hero.title, plural, one {One user online} other {%s users online}} |
array | Returns an array (if applicable in the format) |
i18next | {"key_0": "One apple", "key_1": "Many apples"} |
i18next_v4 | {"key_one": "1 apple", "key_many": "Many apples"} |
symfony | One apple|Many apples |
Example string: My name is [%s:name]. I have [%.2f] dollars.
| |
---|
printf | Printf-style placeholders — "My name is %s. I have %.2f dollars.". |
ios | iOS-style placeholders — "My name is %@. I have %.2f dollars." |
icu | ICU Message Format placeholders — "My name is {name}. I have {0} dollars." |
net | .NET placeholder format — "My name is {0}. I have {0:0.00} dollars." |
symfony | Symfony placeholder format — "My name is %name%. I have %placeholder\_1% dollars." |
i18n | i18n placeholder format — "My name is {{name}}. I have {{0}}." |
raw | No processing will be applied. |