Is it possible to change the default input language when running a build in AppVeyor?

The application that I work with will display texts based on the default input language in the machine. e.g. English (US) , English (UK)
[Analyzed vs Analysed]

It seems like the default language when running tests in AppVeyor build is English (US).

Can you please tell me if there is a way that we can change the default input language in AppVeyor?

  1. Hi Feodor.

    Thanks for that URL. Yes. I want to change locale.
    I have added the following commands in appveyor.yml by checking the current locale (en-US) and then changing to another locale (en-AU).

          - ps: GET-WinSystemLocale
          - ps: Set-WinSystemLocale -SystemLocale en-AU
          - ps: GET-WinSystemLocale
    

    However, the locale is not updated to en-AU.

    Could you please help to check if there is any configuration I should try?

  2. OK, looks like VM needs to be restarted (source). Give it a try:

    init:
    - ps: Set-WinSystemLocale en-AU
    - ps: Start-Sleep -s 5; Restart-Computer
    - ps: Start-Sleep -s 5
    
  3. Thanks Feodor.

    It is working.

  4. weerayuth_r closed this discussion on 08 Dec, 2020 07:59 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac