simrail / EDR

EDR timetable & driver view for Simrail
https://edr.simrail.app
GNU General Public License v3.0
25 stars 12 forks source link

Transifex #6

Closed Tallyrald closed 1 year ago

Tallyrald commented 1 year ago

I created a Transifex organization & project for a better and more streamlined translation experience.

While the project is public, joining it requires approval from me or @DKFN on Transifex.

This PR changes the translation files for compatibility with Transifex. The new approach uses only a single object (instead of nested objects) and string keys are prepended with the relevant component names in CAPITALS. This is however not enforced by styling or linting, it's just a new practice to keep the key names better organized.

So previously:

{
  "app": {
    "fatal_error": "A fatal error occurred, UI will not refresh!",
  }
}

Now:

{
  "APP_fatal_error": "A fatal error occurred, UI will not refresh!",
}

Translation pipeline now looks like this:

Ideally I would automate the import/export from Transifex, but that requires Github org access so it's probably gonna be a later addition.