Skip to content

Conversation

tirinnovo
Copy link

@tirinnovo tirinnovo commented Mar 22, 2025

This commit is to allow adding supported or custom translations, e.g.

import Gantt from 'frappe-gantt';

const gantt = new Gantt('#gantt', tasks, {
  language: 'it', // or 'it-IT'
});

You can also create your own translations:

import Gantt from 'frappe-gantt';

const myEoLocale = {
  Mode: 'Modo',
  Today: 'Hodiaŭ',
  Year: 'Jaro',
  // ...
};

const gantt = new Gantt('#gantt', tasks, {
  language: 'eo',
  locales: {
    'eo': myEoLocale,
  },
});

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

Successfully merging this pull request may close these issues.

1 participant