title: How do I change the locale for the datepicker in Xamarin.Forms?
body: <p>I have an Xamarin.Forms app that supports both English and French. How do I show the Calender (Month, Day of the Week text) for the DatePicker in French locale? 
  <img src="https://i.imgur.com/n2cNoMw.png" alt="Imgur"></p>
  
  <p>I've tried Xamarin.Forms</p>
  
  <pre><code>    public void SetLocale(CultureInfo ci)
      {
          Thread.CurrentThread.CurrentCulture = ci;
          Thread.CurrentThread.CurrentUICulture = ci;
          Console.WriteLine("CurrentCulture set: " + ci.Name);
      }
  </code></pre>
  
  <p>I've tried changing the context before creating the datepicker dialog in my DatePicker custom renderer</p>
  
  <pre><code>        var config = new Android.Content.Res.Configuration { Locale = Locale.CanadaFrench };
          Context.Resources.UpdateConfiguration(config, Context.Resources.DisplayMetrics);
  
          _dialog = new DatePickerDialog(Context, (o, e) =&gt;
          {
              view.Date = e.Date;
              ((IElementController)view).SetValueFromRenderer(VisualElement.IsFocusedPropertyKey, false);
          }, year, month, day);
  </code></pre>
  
  <p>I also tried this in my DatePicker custom renderer
  protected override void </p>
  
  <pre><code>OnElementChanged(ElementChangedEventArgs&lt;Xamarin.Forms.DatePicker&gt; e)
          {
              base.OnElementChanged(e);
              this.Control.TextLocale = Locale.CanadaFrench;
          }
  </code></pre>
  
  <p>None of these did anything to change the locale. </p>
  
  <p>I also found this post that seems have done changing the calendar view to a different locale
  <a href="https://stackoverflow.com/questions/45871800/set-android-datepicker-title-language">Set Android DatePicker title language</a>
  But it wasn't clear how it was accomplished.</p>