# Customizing AI summarizer to use non-English languages

**URL:** https://meta.discourse.org/t/customizing-ai-summarizer-to-use-non-english-languages/372644
**Category:** Support
**Tags:** ai, ai-summarize
**Created:** [July 2, 2025, 3:04pm UTC](https://meta.discourse.org/t/customizing-ai-summarizer-to-use-non-english-languages/372644 "2025-07-02T15:04:08Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Ivan\_Rapekas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_rapekas/32/248924_2.png) [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)
#### Post date: [July 2, 2025, 3:04pm UTC](https://meta.discourse.org/t/customizing-ai-summarizer-to-use-non-english-languages/372644/1 "2025-07-02T15:04:08Z")

</div>

Hello, I use locally `google/gemma-3-4b` with latest Discourse. The model serves some languages well. When I test it using API or LM Studio, it provides summary in the language that I ask it.

Discourse always summarize in English at this moment. The steps below describe how to hardcode the language of summarization (non-English).

  

> Important! Your changes _will be lost_ during next rebuild.

The hardcoded lines are below in two files. The database values from `ai_personas` table are not used (July 2025). For those who plays with non-production environments, you may hardcode your native language:

1. SSH to your server.

2. Copy hardcoded file `summarize.rb` from container to host filesystem:

3. Now edit the file, replace english system prompt to desired language:

4. Next, do the same for the second file:

5. Copy modified files into container:

6. Then commit and restart the container:

7. Check the result (for new topics):

---

_[View the full topic](https://meta.discourse.org/t/customizing-ai-summarizer-to-use-non-english-languages/372644)._
