Skip to content

correct lang code for es and zh-cn #1934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from

Conversation

ShubhamOulkar
Copy link
Member

@ShubhamOulkar ShubhamOulkar commented May 30, 2025

Introduced in #1874

@ShubhamOulkar ShubhamOulkar requested review from a team as code owners May 30, 2025 15:20
Copy link

netlify bot commented May 30, 2025

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit cfb92c2
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6839ccb8f478b200088e0c27
😎 Deploy Preview https://deploy-preview-1934--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@bjohansebas
Copy link
Member

The problem is that Crowdin would overwrite this; I’m going to look for a way to do it from Crowdin.

@bjohansebas
Copy link
Member

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?

@ShubhamOulkar
Copy link
Member Author

ShubhamOulkar commented Jun 1, 2025

@bjohansebas, I am confused 😕. How all other languages got correct lang code? Did you edited manually all lang code?

@ShubhamOulkar
Copy link
Member Author

ShubhamOulkar commented Jun 1, 2025

problem is that Crowdin would overwrite

crowdin can pull changes from repo

do you want to do that?

I will look into it. Once I understand crowdin github workflow.

@bjohansebas
Copy link
Member

@bjohansebas, I am confused 😕. How all other languages got correct lang code? Did you edited manually all lang code?

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

crowdin can pull changes from repo

Yes, but we only upload the English folder to Crowdin, so any changes made to the files in i18n won't be reflected there.

@ShubhamOulkar
Copy link
Member Author

only upload the English folder

Understood

@ShubhamOulkar
Copy link
Member Author

ShubhamOulkar commented Jun 3, 2025

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 es-ES and zh-CN instead of es and zh-cn.

@bjohansebas
Copy link
Member

bjohansebas commented Jun 3, 2025

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.

Hi, I hadn’t seen it. I’ll take a look as soon as I can. Thanks for the resource!

Crowdin recommends using language codes like es-ES and zh-CN instead of es and zh-cn.

We can’t, we would break quite a few links that exist, and really es is fine since it covers the entire Spanish language. In contrast, es-ES refers only to the Spanish from Spain

@ShubhamOulkar
Copy link
Member Author

I'll keep PR open until the language code issue is resolved in Crowdin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants