vue-datetime icon indicating copy to clipboard operation
vue-datetime copied to clipboard

[Feature Request] Localization of 'Cancel' button in French.

Open mturnbu opened this issue 7 years ago • 1 comments

Versions

  • vue:
  • vue-datetime:
  • luxon:

Description:

When language is in French, the Cancel button should translate to Annuler. This is found in your phrases object

phrases | Object | {ok: 'Ok', cancel: 'Cancel'}

and does not have localization keys associated with it.

mturnbu avatar Nov 02 '18 16:11 mturnbu

In the new version, you can add your custom buttons by a slot with your own translations like this.

<datetime>
  <template slot="button-cancel__internal" slot-scope="scope">
      {{ your-custom-translation-for-cancel }}
  </template>
   <template slot="button-confirm__internal" slot-scope="scope">
      {{ your-custom-translation-for-ok }}
   </template>
<datetime

adnumaro avatar Jan 13 '19 14:01 adnumaro