Localization - GoogleChromeLabs/ps-analysis-tool GitHub Wiki
The PSAT extension and CLI are now available in 6 different languages:
- English (Default)
- Hindi
- Japanese
- Korean
- Portuguese (Brazil)
- Spanish
Using PSAT extension in your language
To view PSAT in your preferred language, you can change the display language settings of your Chrome browser. Here are the steps for each operating system:
Mac
To change the Chrome's display language on macOS, follow these steps:
- On your Mac, choose Apple menu > System Settings,
- Click General in the sidebar
- Click Language & Region on the right. (You may need to scroll down.)
- Go to Applications
- Click the Add button (+)
- Choose Chrome and a language from the pop-up menus, then click Add.
- Restart Chrome if necessary.
Windows
To change the Chrome's display language on Windows, follow these steps:
- Visit -
chrome://settings/languages
- Click on Add Languages.
- Select the language you want to add.
- Once the language is added, click the three dots to the right of the language.
- Select "Display Google Chrome in this language" from options.
- Once done relaunch the browser.
Linux (Steps may vary depending on your Linux distribution)
To change the Chrome's display language on Ubuntu, follow these steps:
- Open Settings.
- Open "Language and Region".
- Click on "Manage Installed Languages".
- Click on "Install / Remove Languages".
- Select your desired language from the list.
- Open "Language and Region" again.
- Click on language section and select your desired language.
- Restart your system.
Get PSAT CLI Reports in Your Language
To generate PSAT CLI reports in your preferred language, use -l
or --locale
option when running the command. By default, the language is set to English.
Supported Languages
PSAT CLI currently supports the following languages with their respective language codes:
Language | Code |
---|---|
English | en (default) |
Hindi | hi |
Japanese | ja |
Korean | ko |
Portuguese (Brazil) | pt-BR |
Spanish | es |
Setting Language in CLI
Here is an example of how to set the language when using PSAT CLI:
psat https://example.com -l hi
Here, -l hi
sets the language to Hindi (hi).
Note that if you are using PSAT CLI by cloning the repository, you would use the following:
npm run cli https://example.com -- -l hi