BALKANGraph / FamilyTreeJS

Build family tree app with BALKAN FamilyTreeJS library. Family Tree also called a genealogy or a pedigree chart, is a chart representing family relationships in a conventional tree structure.
50 stars 16 forks source link

Localization #71

Closed A2020GK closed 9 months ago

A2020GK commented 10 months ago

Hello, is it possible to translate built-in UI?

ZornitsaPesheva commented 10 months ago

Hi What do you need to translate? Can you give us a list?

A2020GK commented 10 months ago

Hi What do you need to translate? Can you give us a list?

I want to translate fields' names (name, gender), buttons (edit, export) and search bar.

ZornitsaPesheva commented 10 months ago

The field names are defined by you in the node data or in the edit form elements definitions. This is for the search: https://balkan.app/FamilyTreeJS/Docs/Search Can you give us a list of the buttons that you use? It would be better to create a Code example and send us a screenshots of the buttons that you need to translate.

A2020GK commented 10 months ago

I want to translate these: image

ZornitsaPesheva commented 10 months ago

Hi Антоний, The text is defined in the template. You can get the template from here and change it: https://balkan.app/FamilyTreeJS/Docs/PredefinedTemplates#motherTemplate Click on "Get the source code of mother template" to see the code.