Closed kulla closed 3 years ago
@inyono Can you show me again what I need to do for i18n?
- Update the translation file from source code (E.g. Poedit works well because it has PHP and Twig support). See my commit for the changes.
With which command? yarn i18n:regenerate
hasn't worked for me...
- Export translations (you can ping me for that because I have a script for that).
Can you add this script into this repo or is this not possible?!
yarn i18n:regenerate
is only for the the client i18n. The server i18n has no CLI, unfortunately (because the twig-stuff has no good CLI). This is why we use Poedit for that.
I could add that script to the repo but I would need to change it up so that it works on non-macOS and that it pulls the API token from somewhere.
Since we don't update i18n often and have a good solution for the new frontend, I never prioritized to make this process easier. If you feel that this is necessary, I can look into that.
Since we don't update i18n often and have a good solution for the new frontend, I never prioritized to make this process easier. If you feel that this is necessary, I can look into that.
Let's see whether we need it more often...
Closes https://github.com/serlo/serlo.org/issues/637: