Body: <p>I have a multilingual installation of CiviCRM with en_US, nl_NL, and fr_FR enabled. The civi version is 5.58.1</p>
  <p>Basically, I want to do
  <code>select id, title_en_US, title_nl_NL, title_fr_FR from civicrm_event</code> in my extension.</p>
  <p>But using APIv4 I can only select &quot;title&quot;.
  <code>\Civi\Api4\Event::get(FALSE)-&gt;addSelect('id, 'title')</code></p>
  <p>This does not work:
  <code>\Civi\Api4\Event::get(FALSE)-&gt;addSelect('id', 'title_en_US', 'title_fr_FR', 'title_nl_NL')</code></p>
  <p>Is there are way to also select the title in the other languages using APIv4?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-18T15:08:29.303Z
Comments.Text: You probably need to make 3 calls, and add e.g. `->setLanguage('fr_FR')` to each call for each language.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-19T07:03:38.363Z
Comments.Text: That works. Thanks a lot!
Comments.UserDisplayName: AlainB
Tags: <apiv4><multilingual>
Title: Get title/label in other languages using APIv4?
ThreadText: # Get title/label in other languages using APIv4?
  
  (Asked by: username_0 on 2024-07-18)
  
  I have a multilingual installation of CiviCRM with en\_US, nl\_NL, and fr\_FR enabled. The civi version is 5.58.1
  
  Basically, I want to do
  `select id, title_en_US, title_nl_NL, title_fr_FR from civicrm_event` in my extension.
  
  But using APIv4 I can only select "title".
  `\Civi\Api4\Event::get(FALSE)->addSelect('id, 'title')`
  
  This does not work:
  `\Civi\Api4\Event::get(FALSE)->addSelect('id', 'title_en_US', 'title_fr_FR', 'title_nl_NL')`
  
  Is there are way to also select the title in the other languages using APIv4?
  
  **Tags:** apiv4, multilingual
  
  > **Comments:**
  > **username_1**: You probably need to make 3 calls, and add e.g. `->setLanguage('fr_FR')` to each call for each language.  
  > **username_0**: That works. Thanks a lot!  
  
  ---
  
  ## 0 answers
  
  