XOYZ69 / school_reports

Generate custom reports for your school based on a .json file
0 stars 0 forks source link

Add translation handling to school reports #13

Open XOYZ69 opened 4 weeks ago

XOYZ69 commented 4 weeks ago

Is your feature request related to a problem? Please describe. The whole project is created in english so that anyone can use it. The problem now is that the report itselfs is still in German. image

There should be a way to switch the language in which the report is written.

Describe the solution you'd like The easiest way would be to have a folder 'translation' inside the config folder which contains the different configs like 'en.config', 'de.config'.

Instead of the existing settings wrapper I would like a new Translation class to nicely wrap and handle things. For example if there is a translation missing in the German config it would try to get the default value.

How exactly we should be doing this would be a question for the developer assigned to this, Suggestion are welcomed as a comment.

Describe alternatives you've considered Well we could just let it stay in German or make it fixed in English but that's not really a solution.

Additional context

translation to english in full document required

_Originally posted by @Prixix in https://github.com/XOYZ69/school_reports/pull/11#discussion_r1632317793_