Skip to content
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

Regional language codes not importable #69

Open
joe-replin opened this issue Apr 17, 2024 · 6 comments
Open

Regional language codes not importable #69

joe-replin opened this issue Apr 17, 2024 · 6 comments
Assignees

Comments

@joe-replin
Copy link

joe-replin commented Apr 17, 2024

The translate:import command doesn't import as intended if you are attempting to import a language code with a regional sub-language. It seems to be the - glyph that isn't accepted. You are able to import with a simpler language code and change your folder name post-import.

For example:

  • English (Canada) - en-ca
  • Spanish (Mexico) - es-mx
  • Chinese (Taiwan) - zh-tw
@oliverfoster
Copy link
Member

oliverfoster commented Apr 17, 2024

Could you please paste the entire command or give a screenshot of the output?
Which console are you using? mac, windows? Command prompt? Git bash?

Are the course\* folder names en-ca etc?

@oliverfoster oliverfoster changed the title Regional langauge codes not importable Regional language codes not importable May 1, 2024
@joe-replin
Copy link
Author

The command:
translate:import --targetLang=fr-FR m05

A 'fr-FR' was placed in both course/ and languagefiles/

@oliverfoster
Copy link
Member

Could be parameter parsing at this line

case '-':

@oliverfoster
Copy link
Member

image

Works fine here in git bash.

Which operating system and terminal are you using?

@oliverfoster
Copy link
Member

oliverfoster commented May 1, 2024

you'd need to put the translation in the folder languagefiles/m05/fr-FR and not languagefiles/fr-FR

@oliverfoster
Copy link
Member

Did you have any luck or time in trying to replicate this? @joe-replin

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

No branches or pull requests

2 participants