Jhipster - the meaning of an entity action?

I am new to JHipster. I'm trying to find the next piece of code without really getting it

data-translate="entity.action.edit"

where can i find entity.action.word?

I am trying to add a button function. really confused. Please help me

+4
source share
1 answer

These are keys that relate to entries in i18n JSON files. entity.action.editis in the file global.jsonfor each language that you installed, and looks something like this:

{
    ...
    "entity": {
        "action": {
            ...
            "edit": "Edit"
            ...
        }
    }
    ...
}
+4
source

Source: https://habr.com/ru/post/1657065/


All Articles