BALKANGraph / OrgChartJS

OrgChart JS is a simple, flexible and highly customizable organization chart plugin for presenting the structure of your organization and the relationships in an elegant way.
https://balkan.app/orgchartjs
252 stars 84 forks source link

How chang default filter " all " #853

Closed NivekStarks closed 3 months ago

NivekStarks commented 3 months ago

I would like to replace 'all' with 'tout' to write in French

Here is the screenshot

Capture

NivekStarks commented 3 months ago

And I would like to replace 'Filter by service' with 'Filtre par service'

ZornitsaPesheva commented 3 months ago

Here is a code example: https://code.balkan.app/orgchart-js/filterui-localization#JS

NivekStarks commented 3 months ago

Thanks you !

NivekStarks commented 3 months ago

OrgChart.filterUI.all = '[Toute]'

no it doesn't work

NivekStarks commented 3 months ago

OrgChart.filterUI.textFilterBy = 'Filtre par';

it work OK

ZornitsaPesheva commented 3 months ago

Sorry, I forgot to tell you that you need to get the latest version.

NivekStarks commented 3 months ago

Thanks u !