Codegen: 7e. Generate translations
Description
Goal of this issue is to be able to generate json definition of localization messages. We need to be able to generate localization message's definition json from scratch and also to add new message to existing json definition.
Proposal solution
- for now we will focus only on existing material-ui-example project to fullfill goal of generate module bottom up
- harcode path to i18n definition json file on api level
- for facade function lets have input
definitionSourcewhich will contains source code of i18n definition file - when adding new localization message we have to check such a message does not exist already
Acceptance criteria
-
[ ] GIVE i'm going to add new column to the table and definition json was not found WHEN new column is added THEN new json with column header definition is created
-
[ ] GIVE i'm going to add new column to the table and definition json exists WHEN new column is added THEN definition json file will contains localization message for column header
-
[ ] GIVE i'm going to add new input to the detail and definition json was not found WHEN new input is added THEN new json with input's label definition is created
-
[ ] GIVE i'm going to add new input to the detail and definition json exists WHEN new input is added THEN definition json file will contains localization message for label of the added input
-
[ ] GIVE json file contains definition for customer.name WHEN i tried to add new definition for customer.name THEN definition json is not changed