Skip to content

Instantly share code, notes, and snippets.

PO_EDITOR_BASE_LANGUAGE = 'en'
PO_EDITOR_LANGUAGES = ['en', 'fr', 'es', 'pt'].freeze
def export_translations
poeditor_export(
api_token: PO_EDITOR_API_TOKEN,
project_id: PO_EDITOR_PROJECT_ID,
export_format: 'apple_strings',
language: PO_EDITOR_BASE_LANGUAGE,
output_path: "Sup/Base.lproj/Localizable.strings"