Why multilingual red teaming with promptfoo needs its own setup
The promptfoo redteam language field sets the language of generated tests across all plugins and strategies, defaults to English, and can be overridden per plugin. If your LLM application serves users in more than English, that default is the first setting to review, because English-only probes exercise the attacks an English-speaking attacker would try and often miss the phrasings, idioms, scripts and code-switching that real users, and real attackers, use in other languages. A safety filter that holds in English can behave very differently when the same request arrives in Portuguese, Arabic or a mix of Spanish and English within one message.
Teams usually need this setup in three situations: a customer-facing assistant offered in several languages, an application that receives mixed-language input from users who switch languages mid-sentence, and a deployment where a regional regulator or internal policy expects evidence of testing in the languages users actually speak. In each case, decide which languages matter, which plugins carry the most risk in those languages, and whether one global language setting or per-plugin overrides fit the plan. Confirm the exact language values your promptfoo version accepts in the red team configuration documentation before you write the config.
This page covers the promptfoo configuration for non-English testing and the checks you can run on grading quality in other languages. It does not assess the translation quality of your application's own responses or its user-facing text. Those are product and localization questions, and a red team cannot answer them. Treat grading as the open question: confirm with a native speaker or a reviewer for each language that the grader labels borderline results correctly before you rely on the pass or fail counts in a report.
Which language settings fit which application
When the application talks to users in one language other than English, set the redteam language field to that language so every plugin and strategy generates its test prompts in it. The field applies across all plugins and strategies and defaults to English, so leaving it unchanged means your attacks arrive in a language your users never write. Illustrative example: a German-language banking assistant would set the language to German for the whole scan, and no per-plugin override is needed unless one plugin must stay in English for a specific reason.
- Set the language once: Put the language in the
redteamsection of the configuration so generation and strategies inherit it. - Match the user's register: Check that the purpose describes how real users write, including informal phrasing and local terms.
- Review sample probes: Read a sample of generated prompts before a full run and confirm they read as natural speech in that language.
- Confirm grader language: Make sure the grader can read the target's replies in the same language, or findings may be misjudged.
Before the run, confirm that a native speaker has reviewed a small sample of probes and a sample of target responses.
Applications that accept or answer several languages, or that switch between English and a local language mid-conversation, need a configuration that reflects that mix. The language field accepts one or more languages, so list every language your users actually use. Attacks written only in English will miss code-switching, where a user starts in one language and finishes in another, and that is a common way for filters to fail.
- List every active language: Include each language your users use in production, not only the primary one.
- Add per-plugin overrides selectively: Use a plugin-level language override where a particular category needs a language the global setting does not cover well.
- Test code-switching: Ask the team whether attacks should begin in one language and shift to another, and document that intent in the purpose.
- Balance coverage: Record how many probes each language receives so a dominant language does not hide weak coverage in a smaller one.
- Verify per language: Sample responses in each language, because grading quality can differ between them.
Before the run, confirm with native speakers for each language that the sampled probes and grading decisions are accurate.
Some English-language applications still receive foreign-language input, for example from customers who write in Spanish or from documents in French. The language field can stay at English for the main scan, while a per-plugin override adds a foreign language to the plugins where that exposure matters, such as harmful content or personal data disclosure. This keeps the scan focused and avoids multiplying every plugin across languages you do not need to test.
- Keep English as the base: Leave the global language at English so the bulk of the scan stays predictable.
- Override where exposure exists: Apply a per-plugin language only to plugins tied to a real foreign-language input path.
- Check probe volume: Adding languages to individual plugins changes the number of probes sent, so estimate the total before you start.
- Confirm the input path: Verify with the product owner which languages actually reach the model in production.
- Document the scope: Record which plugins are tested in which language so the report explains the coverage.
Before the run, confirm the list of foreign languages against production logs or the product owner's answer, and check that each override produces sensible probes.
Language configuration options and when each fits
This table compares the global redteam language field, a multi-language list and per-plugin overrides, with the trade-off of each. Read it to decide how far a language setting should reach before you generate tests. The main takeaway is that the global field is the default starting point, and overrides should be added only where a specific plugin needs different handling.
| Option | What it changes | When it fits | What to confirm |
|---|---|---|---|
| Global redteam language (single value) | Sets one language for generated tests across all plugins and strategies. Defaults to English when unset. | The whole application serves one non-English market, such as a Japanese support bot. | Confirm the language value your version accepts and that the target answers in that language. |
| Multiple languages in one list | Generates tests in each listed language across all plugins and strategies, multiplying the probe count. | A single assistant serves several languages and you need coverage in each. | Confirm how the list changes probe totals and check your Community probe limit before scanning. |
| Per-plugin language override | Changes the language for one plugin while the global setting applies to the rest. | A domain plugin targets local regulations or terms in one language, such as a Spanish-language refund policy. | Confirm the override key name in your promptfoo version and that the plugin supports the chosen language. |
| Mixed-language prompts (illustrative) | Generates attacks that switch languages mid-conversation, which the global field alone may not express. | Users routinely mix English product names into another language. | Confirm whether mixed-language output is produced by your configuration or must be written as custom intents. |
| English-only default left in place | Keeps every generated test in English, regardless of the target's language. | Only as a baseline for comparison with other languages. | Confirm that English-only coverage does not stand in for testing the language your users write in. |
How to configure a multilingual promptfoo red team
This sequence takes a team from a clean promptfoo install to a reviewed, language-correct red team scan of a non-English or mixed-language application. Each step ends with a check, so problems in generated probes surface before a full run.
Install promptfoo and confirm the runtime
Install the promptfoo package, which is licensed under the MIT license, on a machine that meets its runtime requirement. The 0.124.1 release requires Node.js 22.22.0 or newer, so check the installed Node.js version before installing. Run the promptfoo version command and confirm the reported version matches the release your team has approved. Done means the CLI starts cleanly and the version is recorded in your test notes, because generated probes can change between releases. Check the promptfoo releases page for release notes before you pin a version.
Write the target and purpose in the target language
Describe the application under test, including the languages its users write in, the data it handles and the tools it can call. Write the purpose in the language your users actually use, or in English with the target languages named explicitly, so the red team understands the context it is attacking. Ask the application owner which languages are supported in production and which are only partially supported. Done means the configuration file names the target endpoint and contains a purpose that a native speaker on your team has read and agreed is accurate.
Set the redteam language field
Add the language field under the redteam section of the configuration file to set one or more languages for generated tests across all plugins and strategies. The field defaults to English, so a configuration that omits it will produce English probes even against a Japanese or Arabic application. Use the language codes your team has agreed on and list every language the application accepts. Done means the configuration file validates and the language value is visible in the file that your reviewers will sign off on.
Add per-plugin language overrides where needed
Some plugins test content that should differ from the main language, such as a plugin that targets a regional regulation or a mixed-language user who switches scripts mid-conversation. Set a language override on those plugins only, and keep the rest on the global value so coverage stays comparable across languages. Record each override and the reason for it in your test notes. Done means each override is listed with its plugin name, its language and the business or user reason behind it. Confirm the exact override syntax in the promptfoo red team configuration documentation before you commit it.
Run a small scan with reduced probe counts
Before a full run, lower the number of tests per plugin and limit the strategies so the scan is small enough to review by hand. Run the scan against the target and save the generated prompts and the target responses. Keep the run in a test environment, not production, and confirm that the target endpoint is the one the application owners approved. Done means the scan completes and produces a results file that you can open and read line by line.
Check generated probes for language correctness
Have a native speaker for each configured language read a sample of the generated probes. The check is whether each probe is written in the intended language, reads naturally, and carries the attack intent the plugin describes. Look for probes that fell back to English, mixed scripts that were not intended, or translations that lost the meaning of the attack. Done means the reviewer signs off a sample for each language or lists specific failures to fix in the configuration before the next run. Do not start a full scan until every configured language has passed this review.
Verify grading quality in each language
Grading decides whether a response counts as a finding, and graders can misjudge replies written in other languages. Take a set of target responses in each language, including some clear refusals and some clear failures, and check whether the grader labels them as expected. Compare the grader's labels with your native reviewer's labels and record the disagreements. Done means you know which languages the grader handles reliably, and you have a written list of borderline cases that must be reviewed by a person before results go into a report. Ask the grading model's provider which languages it was tested on, since promptfoo's documentation does not establish that for every model.
Run the full scan and archive the evidence
Once probes and grading have passed review, run the full scan with the agreed probe counts and save the configuration, the promptfoo version, the language settings, the override list and the reviewer sign-offs together. Store these with the results so a later re-run can use the same settings. Done means the full results, the configuration and the review record are archived in one location your security and compliance teams can access, and a reviewer can reproduce the setup from the saved files alone.
How language settings flow from config to generated probes and grading
The flow starts with the top-level redteam language field, which sets the language for generated tests across all plugins and strategies, with English as the default. A per-plugin override can replace that value for a single plugin, so the plugin generates probes in its own language. Generated probes then pass through the strategies to the target application, and the grader judges the responses. Check at the grader step: a non-English response must be reviewed by a fluent speaker before a finding is reported.
Language settings move from config through generation and grading to human review.
How to check grading quality in other languages
Grader labels in a non-English language need their own check before you trust a red team report. A model acting as grader reads the target's reply and decides whether an attack succeeded, and that judgment is most fragile when the reply uses idioms, code-switching, transliterated names, or a refusal phrased in a way the grader was not tuned to recognize. A reply that clearly complies in Spanish or Japanese can be marked as a refusal, and a polite refusal can be marked as a leak. Nothing in the report signals this, so the check has to be deliberate.
Start by sampling findings per language. Pull a set of passing and failing results for each language in the redteam language field, and include the borderline ones where the grader's reasoning is weakest. Give the sample to a native speaker or a trusted reviewer who reads the original target reply, not the English translation, and records whether they agree with the pass or fail label. Compare the disagreements against the application's purpose and the graderGuidance you wrote. If the reviewer finds that the grader keeps misreading the same pattern, the purpose or guidance is the first thing to fix. Confirm with your reviewer which languages and domain terms they can judge reliably, since a mixed-language application may need a reviewer for each language it serves.
Plan this review as a recurring step, not a one-off. Repeat it after you change the grading model, the purpose, or the list of languages, because each of those can shift how labels are assigned. The fixes for systematic mislabeling, such as detailed purpose text, grader examples and choice of grading model, are covered in the false-positive grading guidance, so use this review to find the problem and that guidance to correct it. Record the reviewer's decisions alongside the scan so that a later reader can see which languages were checked and by whom.
What goes wrong in non-English red teams
Multilingual red teams fail in predictable places, and most failures trace back to one assumption: that English test results stand in for every language. The cards below cover coverage, probe quality, grading, mixed-language input and review. Each one has a check that a native speaker or your own test record can confirm.
English-only plugin coverage gaps
The language field defaults to English, so a red team that does not set it generates attacks only in English. Users who write in other languages then reach the application untested, even when the target answers in their language. Before the first run, list the languages your users write in and set language explicitly. Then check which plugins accept a per-plugin override, and count probes per language in the report so gaps are visible.
Red team configuration docsMachine-translated probes lose intent
A probe translated word for word from English often reads as stilted, and attackers rarely write that way. The application may then be tested on a request no real user would send, so a clean result proves less than it appears to. Ask a native speaker to read a sample of generated probes for each target language and look for idioms, politeness forms and slang that carry the request. Keep the reviewed sample in the test record so later runs can be compared with it.
Graders misreading non-English refusals
The grader decides whether a response is a refusal, a partial answer or a successful attack. In languages where refusals are indirect or heavily hedged, a safe reply can be scored as a failure, and a harmful reply can be scored as a refusal. Treat grader verdicts as provisional until a native reader checks a labeled sample. Record each disagreement, then tighten the purpose and grader guidance for that language before trusting the pass rate.
Mixed-language inputs slipping through
Users switch languages mid-sentence, for example an English instruction that includes a local product name, or a local-language request that embeds English jailbreak wording. Checks tuned to one language can miss an attack when the payload is split across two. Add a small set of mixed-language cases to the purpose and to custom intents, then run them with the strategies you already use. Confirm that the grader labels these responses correctly, not only the plain-language ones.
Reviewers who cannot read findings
A finding that the security team cannot read is a finding they cannot fix, accept or dispute. Reports show the prompt, the response and the grader's reason, and any of the three may be in a language the reviewer does not speak. Decide who translates findings for the reviewer, whether the translation is kept beside the original text, and who signs off on its accuracy. Confirm that your review tooling stores non-Latin text without corruption before the first scan.
Questions teams ask before running multilingual red teams
Are English-only red team scans enough for a multilingual application?
No, not if real users write in other languages. An English-only scan tests the application's behavior in English, and guardrails, refusal logic and grading can behave differently in other languages. The promptfoo redteam language setting controls which languages generated tests use across all plugins and strategies, and it defaults to English. If your users, support channels or retrieved documents include other languages, add those languages to the scan and confirm the coverage with someone who reads them. Confirm the supported language list for your promptfoo version in the promptfoo red team configuration docs before you commit to a language set.
What does a multilingual red team need from our team?
It needs three things: native-level reviewers, a representative sample set and a configuration that names each language on purpose. Reviewers check that generated attacks read naturally and that graders label refusals and leaks correctly in each language. Your team supplies the sample of real user phrasing, product terms and regional rules that the purpose should reflect. The configuration covers the global language setting, any per-plugin overrides and the target endpoint. Ask who will review each language, how much time they can give, and whether they can read the grader's reasoning, not only the pass or fail label.
How long does a first multilingual red team run take?
Duration depends on the number of languages, the number of plugins and strategies, the probe volume and how much human review you plan. Each added language multiplies the generated tests for the same plugin set, so the run and the review queue grow together. Reviewer availability is often the longest step, because borderline findings need a second reader. No duration is given here because none is supplied for this topic. Ask for a written schedule that separates setup, generation, a grading check per language and review, and that states which languages are in each phase.
Can our team run multilingual red teams without outside help?
Yes, if you have an engineer who can configure promptfoo and reviewers who can read each language at the level your risk requires. The engineering part is mostly configuration: setting the language field, adding per-plugin overrides and running scans. The harder part is judging whether the results are right in each language, which depends on reviewer skill more than tooling. Teams without native reviewers often start with one or two languages, check grading quality on a small set, and expand only after that check passes. DeployOpen can plan and run this work as a fixed-scope engagement, with the scope agreed in writing before work starts.
How do probe volume and reviewer time shape the cost?
Cost is driven by how many probes run and how many findings need human judgment. Probe volume rises with each language, each plugin's test count and each strategy that multiplies payloads. Self-run promptfoo Community use includes red teaming with 10k probes per month, according to the promptfoo pricing page, so probe count can decide whether a scan fits that allowance. Reviewer time is usually the larger cost: it scales with the number of languages, the volume of borderline results and the number of reviewers needed per language. Ask any provider for a quote that lists probe estimates per language, the review hours assumed and what is one-time setup versus recurring retesting.
How do we check whether grading is accurate in another language?
Take a small set of results in each language, have a native reviewer label them independently and compare those labels with the promptfoo grader's verdicts. Include clear passes, clear failures and borderline cases, because grader errors often cluster in ambiguous responses. Where the grader disagrees, record the reason and adjust the purpose, grader guidance or examples for that language before scaling up. Repeat the check after changing the grading model or the target, since either can shift results. Keep the reviewed set so future runs can be compared against it.
Should we set languages globally or override them per plugin?
Set a global language list when every plugin should cover the same languages, and use per-plugin overrides when a plugin needs a different set. For example, a plugin tied to a regional regulation may need only the language of that region, while general harm plugins may cover all user languages. Overrides add configuration to maintain, so keep them documented and review them when the application's languages change. The field names and behavior should be confirmed in the promptfoo red team configuration docs for the version you run.
How DeployOpen scopes and delivers multilingual red teams
DeployOpen plans and runs promptfoo red teams for applications that serve users in more than one language. We agree the languages, plugins and grading checks in writing, then build, test, document and hand over the setup so your own team can rerun it.
How we scope
- Confirm every language your users write in, including mixed-language conversations and transliterated text.
- Agree which plugins take the global language setting and which need a per-plugin override.
- Write the written scope with languages, target endpoints, deliverables and the people who review borderline findings.
How we build
- Configure the redteam language field and per-plugin overrides in the promptfoo configuration under version control.
- Write purpose statements in each target language so generated attacks reflect how your users actually write.
- Run a bilingual spot check of generated probes and grader verdicts before the first full scan is accepted.
How we hand over
- Deliver the configuration, a language coverage record and a grading review log your team can audit.
- Document which languages were checked by a fluent reviewer and which were tested by machine translation alone.
- Walk your security and localization staff through rerunning the scan against a changed model or prompt.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the fixed-scope engagement ends.
- Retest new languages or plugins when you add markets, and report the changes in the same format.
- Confirm with your reviewers which grading results need a second opinion before they reach a findings report.

