cgkineo / rub-cli

Adapt RUB buildkit
3 stars 2 forks source link

Regional language codes not importable #69

Open joe-replin opened 5 months ago

joe-replin commented 5 months ago

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:

oliverfoster commented 5 months ago

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?

joe-replin commented 4 months ago

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

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

oliverfoster commented 4 months ago

Could be parameter parsing at this line https://github.com/cgkineo/rub-cli/blob/1c8161f29f5ed570fb9ed271b52f01b9242b5010/globals/terminal.js#L27

oliverfoster commented 4 months ago

image

Works fine here in git bash.

Which operating system and terminal are you using?

oliverfoster commented 4 months ago

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

oliverfoster commented 4 months ago

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