Question about traccar/templates/translations

Victor Butler 2 months ago

Hello,

  1. What are the localization files located here used for: traccar/templates/translations? For translating notifications, web interface, both?

  2. Are they added during installation? How?

  3. Since we already have a dedicated language folder that contains translated notifications, why do we need the \translations folder?

Anton Tananaev 2 months ago

Not sure I understand questions. The files are in source:

https://github.com/traccar/traccar/tree/master/templates/notifications

Victor Butler 2 months ago

When i installed 6.14.5 version i got a folder called translations in traccar/templates. What are those JSON files used for?

Anton Tananaev 2 months ago

Looks like you changed your original question. It was about notifications folder.

Translations are coming from the web repo:

https://github.com/traccar/traccar/blob/master/.github/workflows/release.yml#L56-L58

Victor Butler 2 months ago

Yes, I typed in the wrong folder name.

So those JSON files are only used to translate the web interface?

Anton Tananaev 2 months ago

No, they are using on the backend now.

Victor Butler 2 months ago

Interesting, what do we use them on the backend for?

Anton Tananaev 2 months ago

For now it might be only for some notification-related things, like alarm translations.