Closed 0xemc closed 3 months ago
Sorry to be blunt but "I don't understand the translation process" is not ticket worthy...
If you can pinpoint where the excess complexity is or where bugs are being introduced, or make a case for an alternative that would be a start. Here is how the process works:
extract
: lingui parses the source code and outputs source strings to a locales/en filecompile
: before builds (postinstall) we run this command to convert the string source files into useable JSON. This json is not commited to gitWe settled on this process because it is completely automated and avoids the need for "string freeze" like some teams do. Other translation tools would likely be a variation of the above (static code analysis -> syncing workflow -> string output --> react provider)
My only gripes have been with Lingui being tied to Babel (preventing us from using faster Nextjs tooling) And some breaking changes they introduced with their new version
Will be moved to CM repo
The current translation process is overly complex and prone to bleeding bugs in to production. We need a simpler solution that everyone can understand and that exposes issues before they get to production.