correct lang code for es and zh-cn#1934
correct lang code for es and zh-cn#1934ShubhamOulkar wants to merge 2 commits intoexpressjs:gh-pagesfrom
Conversation
✅ Deploy Preview for expressjscom-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The problem is that Crowdin would overwrite this; I’m going to look for a way to do it from Crowdin. |
|
I looked into Crowdin and I don’t see a way to do it automatically. Doing this every time Crowdin opens a PR is quite a manual task, and I don’t think it’s something we should have to deal with. Maybe the best option would be to create a script that, after the translations are downloaded, adjusts the language depending on the file, as a temporary solution. @ShubhamOulkar do you want to do that? |
|
@bjohansebas, I am confused 😕. How all other languages got correct lang code? Did you edited manually all lang code? |
crowdin can pull changes from repo
I will look into it. Once I understand crowdin github workflow. |
Because Crowdin doesn’t manage to translate everything. For some reason, it did transform the codes for the other languages, but for these languages it didn’t understand that it needed to transform them. Although I could probably make the changes manually from Crowdin and accept this PR, we really need a solution to prevent this from happening
Yes, but we only upload the English folder to Crowdin, so any changes made to the files in i18n won't be reflected there. |
Understood |
|
Hi @bjohansebas, have you had a chance to try this File Pre-Export Processing Module for Crowdin? It lets you modify strings before files are exported from Crowdin. Also, Crowdin recommends using language codes like |
Hi, I hadn’t seen it. I’ll take a look as soon as I can. Thanks for the resource!
We can’t, we would break quite a few links that exist, and really |
|
I'll keep PR open until the language code issue is resolved in Crowdin. |
Introduced in #1874