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

weerayuth_r's Avatar

weerayuth_r

05 Nov, 2020 06:42 AM

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. Support Staff 1 Posted by Feodor Fitsner on 05 Nov, 2020 06:09 PM

    Feodor Fitsner's Avatar
  2. 2 Posted by weerayuth_r on 09 Nov, 2020 12:10 AM

    weerayuth_r's Avatar

    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?

  3. Support Staff 3 Posted by Feodor Fitsner on 09 Nov, 2020 02:13 AM

    Feodor Fitsner's Avatar

    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
    
  4. 4 Posted by weerayuth_r on 09 Nov, 2020 04:52 AM

    weerayuth_r's Avatar

    Thanks Feodor.

    It is working.

  5. 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