From 4afd9a4295c601fde820bcb658f28e4f4f032294 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Fri, 5 Jan 2024 09:42:57 -0700 Subject: [PATCH] Added documentation for overriding the locale via env variables. --- docs/configuration.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index 3ebe1b17b..6ce9644ef 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -373,3 +373,15 @@ The following table lists the default severity levels for each diagnostic rule w | reportUninitializedInstanceVariable | "none" | "none" | "none" | "none" | | reportUnnecessaryTypeIgnoreComment | "none" | "none" | "none" | "none" | | reportUnusedCallResult | "none" | "none" | "none" | "none" | + + +## Locale Configuration + +Pyright provides diagnostic messages that are translated to multiple languages. By default, pyright uses the default locale of the operating system. You can override the desired locale through the use of one of the following environment variables, listed in priority order. + +``` +LC_ALL="de" +LC_MESSAGES="en-us" +LANG="zh-cn" +LANGUAGE="fr" +```