From 222f2769595dd97e064f4a9cf4156687ab0a64d4 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Thu, 27 Feb 2025 10:29:05 +0200 Subject: [PATCH] docs: add language configuration documentation and update changelog --- README.md | 3 ++- docs/docs/usage-guide/additional_configurations.md | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6d0f1d66..ed4fdd8c 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,8 @@ PR-Agent aims to help efficiently review and handle pull requests, by providing ### Feb 27, 2025 -Important updates and bug fixes for Azure DevOps, see [here](https://github.com/qodo-ai/pr-agent/pull/1583) +- Important updates and bug fixes for Azure DevOps, see [here](https://github.com/qodo-ai/pr-agent/pull/1583) +- Added support for adjusting the [response language](https://qodo-merge-docs.qodo.ai/usage-guide/additional_configurations/#language-settings) of the PR-Agent tools. ### Feb 6, 2025 New design for the `/improve` tool: diff --git a/docs/docs/usage-guide/additional_configurations.md b/docs/docs/usage-guide/additional_configurations.md index d71e5be0..5ff211c6 100644 --- a/docs/docs/usage-guide/additional_configurations.md +++ b/docs/docs/usage-guide/additional_configurations.md @@ -57,19 +57,20 @@ All Qodo Merge tools have a parameter called `extra_instructions`, that enables /update_changelog --pr_update_changelog.extra_instructions="Make sure to update also the version ..." ``` -## Localization +## Language Settings The default response language for Qodo Merge is **U.S. English**. However, some development teams may prefer to display information in a different language. For example, your team's workflow might improve if PR descriptions and code suggestions are set to your country's native language. To configure this, set the `response_language` parameter in the configuration file. This will prompt the model to respond in the specified language. Use a **standard locale code** based on [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166) (country codes) and [ISO 639](https://en.wikipedia.org/wiki/ISO_639) (language codes) to define a language-country pair. See this [comprehensive list of locale codes](https://simplelocalize.io/data/locales/). -### Example: +Example: -```yaml -response_language: "he-IL" +```toml +[config] +response_language: "ja-JP" ``` -This will set the response language globally for [describe](../tools/describe.md), [improve](../tools/improve.md), [add_docs](../tools/documentation.md), [update_changelog](../tools/update_changelog.md), [test](../tools/test.md) commands to Hebrew +This will set the response language globally for all the commands to Japanese. > **Important:** Note that only dynamic text generated by the AI model is translated to the configured language. Static text such as labels and table headers that are not part of the AI modeles response will remain in US English.