def create_payload(text, target_lang):
    """Create payload for DeepL API call"""
    return {
        "jsonrpc": "2.0", "method": "LMT_handle_jobs", "id": 1,
        "params": {
            "jobs": [{"kind": "default", "raw_en_sentence": s} for s in text],
            "lang": {"user_preferred_langs": ["EN", "PL"],
                     "source_lang_user_selected": "auto",
                     "target_lang": target_lang},
            "priority": 1}}