`Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", _googleApiParams.CredentialsPath /path to JSON file/);
_translationClient = TranslationServiceClient.Create();
DetectLanguageRequest request = new()
{
Parent = "projects/my-project-name",
Content = "this is a detection test"
};
`Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", _googleApiParams.CredentialsPath /path to JSON file/);
_translationClient = TranslationServiceClient.Create();
DetectLanguageRequest request = new()
{
Parent = "projects/my-project-name",
Content = "this is a detection test"
};