🔧 Use Node.js 22 and bump i18next-cli#1280
Conversation
|
Thanks for looking into this. However, missing translations are now inserted as "" in the translation files which makes them disappear in the GUI. Is it possible to fallback to the English strings again? Also, it's not very nice that we now have to list the locales in the i18next.config.ts. This way, whenever someone adds a new language on weblate, we need to update this list manually. Is there some way around this? |
The
I've changed those hardcoded locale codes to a glob script for locale detection. |
|
@Schneegans I didn't reformat the locale file because it often causes conflicts. We can run the |
Schneegans
left a comment
There was a problem hiding this comment.
I think this looks good now! Thank you so much for looking into this!
Changes
i18next-parsertoi18next-cliThe legacy
i18next-parserpackage blocked us from upgrading the Node.js version because it does not support Node.js 22 or later. The i18next team has deprecated thei18next-parserand recommends users migrate toi18next-cli. I migrated it toi18next-climanually and made some cleanup (comments, configuration) using AI (Opus 4.6).Those translation files have been changed because the
i18next-clisupports sorting keys. I just used its default configurations. Sorting keys can make the content in translation files consistent, so I kept it. Please let me know if you have any thoughts.