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
Adapt tests for internationalization #11628
Conversation
There is a locale override Line 254 in ff5815c
It also looks like some tests support locale nushell/crates/nu-command/tests/commands/str_/into_string.rs Lines 151 to 192 in ff5815c
and a function |
@fdncred As far as I can tell, neither of them influence the output of an external command like I also tried adding $env.LANG = 'en_US.UTF-8'
$env.LANGUAGE = 'en' But it still doesn't seem to stop |
b8578bb
to
ebfe9f7
Compare
Correction, that does work. I just had to import the adapted version of I adapted the PR accordingly. |
Right. I wasn't saying |
Indeed. External |
ebfe9f7
to
8464021
Compare
thanks |
I've noticed that two tests fail on my system when running `toolkit check pr`. The reason for this is that my locale is set to German. `ls` is translated, so checking the error message will only work on systems set to English. I've adapted the test to check the exit code instead. Alternatively, we could set the locale, I am not sure if the `nu!` macro supports that though.
I've noticed that two tests fail on my system when running
toolkit check pr
. The reason for this is that my locale is set to German.ls
is translated, so checking the error message will only work on systems set to English.I've adapted the test to check the exit code instead.
Alternatively, we could set the locale, I am not sure if the
nu!
macro supports that though.