Webperf-se / webperf_core

webperf-core is an open-source testing suite tailored to help you improve your digital presence in areas like web performance, security and accessibility to email best practice using many small improvements.
https://webperf.se/articles/webperf-core/
MIT License
19 stars 31 forks source link

Add language from terminal options to settings.json #531

Closed 7h3Rabbit closed 5 months ago

7h3Rabbit commented 5 months ago

Today when running webperf-core you can specify language to use by using -L <lang-code> or --language <lang-code> for current run.

In this PR we make it possible to specify it in settings.json and have it persistent between runs:

{
    "general": {
        "language": "sv"
    }
}

You can also use the longer form for use during current run: python default.py --setting general.language=sv -i sites.json