Skip to main content

Download

Download your translation files by executing the command:

translized download

You can add additional download options and set up workflow per your needs.

Transform placeholders

Transform placeholders on download to native ones for iOS and android.

For example, Android string with placeholders:

I live in %1$s with %2$s for %3$.2f years.

on iOS will be exported as:

I live in %@ with %@ for %.2f years.

tip

This allows you to share the project between iOS and android and don't worry about platform-specific placeholders.

Replace empty translations

It is a common situation that translations are not ready while developing some feature, so when you change a language you can get screens with empty titles, labels, and texts...

Choose one of two download options and avoid empty screens on non-primary languages:

  • Replace empty with primary language translations
  • Replace empty with pseudolocalized strings
tip

Replace empty with pseudolocalized strings option is particularly useful if you wan't to test how UI looks when strings are longer than primary language.

You can set the length of pseudo translations. For example:

Setting value 50 as an increased percentage, translation:

Welcome to Translized !

will be exported like:

Welcome to Translized !Welcome to

in files for languages that are not yet translated.

info

Only empty translations will be replaced!

File example for replacing empty with primary translation:

---
:translized:
:access_token: 610402a6-5dc3-46aa-bc3b-19a8b29288es
:project_id: zAhfwMRi7f
:download:
- :path: './<locale_code>.lproj/Localizable.strings'
:file_format: strings
options:
transform_placeholders_iOS_android: true
replace_empty:
:primary_translations: true
:upload:
- :path: './<locale_code>.lproj/Localizable.strings'

File example for replacing empty with pseudolocalization:

---
:translized:
:access_token: 610402a6-5dc3-46aa-bc3b-19a8b29288es
:project_id: zAhfwMRi7f
:download:
- :path: './<locale_code>.lproj/Localizable.strings'
:file_format: strings
options:
transform_placeholders_iOS_android: true
replace_empty:
:pseudolocalization: true
:increase_percentage: 55
:upload:
- :path: './<locale_code>.lproj/Localizable.strings'