Question about traccar/templates/translations

Victor Butler 22 hours 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 22 hours ago

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

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

Victor Butler 21 hours 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 21 hours 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 21 hours ago

Yes, I typed in the wrong folder name.

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

Anton Tananaev 21 hours ago

No, they are using on the backend now.

Victor Butler 21 hours ago

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

Anton Tananaev 20 hours ago

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