Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add official localization templates #128

Closed
Calinou opened this issue Sep 24, 2018 · 2 comments
Closed

Add official localization templates #128

Calinou opened this issue Sep 24, 2018 · 2 comments

Comments

@Calinou
Copy link

Calinou commented Sep 24, 2018

ApexCharts already supports localization, but as far as I know, no template files are provided.

It could be useful to add localization templates that could be imported when desired, similar to projects like date-fns.

For example, here's one I wrote for French (feel free to use it if you wish):

{
  "name": "fr",
  "options": {
    "months": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"],
    "shortMonths": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juill.", "août", "sept.", "oct.", "nov.", "déc."],
    "days": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"],
    "shortDays": ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."],
    "toolbar": {
      "download": "Télécharger au format SVG",
      "selection": "Sélection",
      "selectionZoom": "Sélection et zoom",
      "zoomIn": "Zoomer",
      "zoomOut": "Dézoomer",
      "pan": "Navigation",
      "reset": "Réinitialiser le zoom"
    }
  }
}

Those templates could be contributed by users and added to this repository 🙂

@junedchhipa
Copy link
Contributor

Good suggestion. I will add an option to import localization templates.

@junedchhipa
Copy link
Contributor

v2.0.8 adds locales directory to /dist.
Other users can contribute in /src/locales. Each build will copy the src locales to dist directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants