Answers.Body: <p>It should be</p>
  <pre><code>cv api Setting.create lcMessages=&quot;fr_FR&quot; 
  </code></pre>
  <p>Make sure you use the correct language code.</p>
  <p>Note: Sometimes you need to clear CiviCRM cache to apply changes.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-14T11:56:46.693Z
Answers.Text: with the french translations files uploaded it's even better! ;-) thanks Pradeep
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-14T12:07:06.607Z
Answers.Text: did that work ?
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-14T12:23:49.270Z
Answers.Text: yes, thanks I had used previously fr_FR and flushed caches but I only forgot to upload localization files... that's why I was wondering how it was supposed to work. :-)
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-14T10:23:06.253Z
Answers.LastActivityDate: 2022-03-14T10:23:06.253Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Looking in the API V3, I can find the default language in Setting but not how to set it to <code>fr_FR</code>.</p>
  <p>I've tried commands like <code>cv api Setting.create lcMessages=&quot;FR&quot;</code> but they return nothing or errors.</p>
  <p>Is that possible?</p>
  
Tags: <cv><default-settings>
Title: What is the `cv` command to set default language?
ThreadText: # What is the `cv` command to set default language?
  
  (Asked by: username_0 on 2022-03-14)
  
  Looking in the API V3, I can find the default language in Setting but not how to set it to `fr_FR`.
  
  I've tried commands like `cv api Setting.create lcMessages="FR"` but they return nothing or errors.
  
  Is that possible?
  
  **Tags:** cv, default-settings
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-03-14. Score: 2
  
  It should be
  cv api Setting.create lcMessages="fr_FR" 
  
  Make sure you use the correct language code.
  Note: Sometimes you need to clear CiviCRM cache to apply changes.
  
  > **Comments:**
  > **username_0**: with the french translations files uploaded it's even better! ;-) thanks Pradeep  
  > **username_1**: did that work ?  
  > **username_0**: yes, thanks I had used previously fr_FR and flushed caches but I only forgot to upload localization files... that's why I was wondering how it was supposed to work. :-)  
  
  ---
  
  