Closed (won't fix)
Project:
/llms.txt
Version:
1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2026 at 16:02 UTC
Updated:
8 Jul 2026 at 07:29 UTC
Jump to comment: Most recent
Comments
Comment #2
mxr576See previous discussion about llms.txt (as standard) vs multi-language support.
#3548950: llms.txt should be only available on the default language for now especially comment 12 #3548950-12: llms.txt should be only available on the default language for now
Comment #3
mytungsten commentedThe explanation for only allowing the default language makes sense when the language negotiation is handled path based, like example.com/en, example.com/fr, etc. However, Drupal allows for domain based negotiation too, so example.com, example.fr, etc. In that scenario, it does make sense to allow for translation because it would be served up from example.com/llms.txt, example.fr/llms.txt, etc.
Does it make sense to mention this in the previous issue and potentially reopen it or explore that option with this issue?
Comment #4
mxr576Let's keep the conversation in this issue.
Do you use Domain module in this setup?
Comment #5
mytungsten commentedNo, it is part of the core Language module. After enabling the Language module, there is a Detection and selection screen where you can configure languages by URL. In there, there is a radio button letting you pick between Path prefix, which is what was described in the previous issue, and Domain.
Comment #6
mxr576Right, I was just really hoping that this discussion could turn into building a bridge between llms_txt and domain module _without_ changing something on the current logic 🙃
I need to think about more on this, unless you have an idea or proposed code change that keeps the current path based logic but also supports your case.
Comment #7
albeorte commentedHello,
I believe that the reason for this issue should be to enable the generation of multiple "llms.txt" files for each language on multilingual sites. (This could be configurable or only have the original behavior, the current one).
There is no unified decision on how the “/llms.txt” file should be generated, however, they comment on how to build the file if you have different domains (Doc: https://llmstxt.org/domains.html), and it could be extrapolated to a site with different languages.
* For example:
Some international websites are presenting their sites in this way (For example: https://www.lg.com/llms.txt or https://docs.nvidia.com/llms.txt)
Comment #8
albeorte commentedThe conclusion is that, whether for language or other purposes, it may be useful to generate several "llms.txt" files that are linked to the main one.
Use cases: Different languages (/en/llms.txt; /fr/llms.txt), different subsites (/earth/llms.txt; /mars/llms.txt), other uses.
The problem has been caused by the language, but abstracting the need, I think it would be interesting to discuss the relevance of creating several "llms.txt" files, to which you can configure the desired path (/fr/llms.txt; /cosmos/llms.txt; etc.).
* For discussion:
Comment #9
albeorte commentedI propose taking advantage of this need with languages, which is also useful for other aspects, by creating a new entity, similar to the existing Section entity.
For example:
Entity Context LLMs.
A context could be "French Language".
Each of these generates its own
llms.txtfile, with the possibility of adding the desired path using a Path field (just as paths are managed in nodes).If necessary, we will address it in this issue, or we will create a dedicated issue, but I would like to discuss it and hear your opinions and possible solutions.
Comment #10
mytungsten commentedFrom my perspective, because this content is being saved as configuration, we would like to manage it like we do other translated content on our sites under /admin/config/regional/config-translation. That said, if there are going to be different needs for this for path based negotiation vs. domain based, this might not be the best approach. We run into the same issue with robots.txt and it looks like they have not solved it either.
Comment #12
nickolajAdded `translatable: true` to the content field in the config schema. This enables the llms.txt settings to appear in Configuration Translation UI at `/admin/config/regional/config-translation`.
Comment #14
nickolajAdded `translatable: true` to the content field in the config schema. This enables the llms.txt settings to appear in Configuration Translation UI at `/admin/config/regional/config-translation`.
Comment #15
mxr576Regarding the documentation you referenced about building the file for different domains:
@albeorte I do not think that “domain” on that page refers to the same concept we are discussing here. 🙂
In this example, what we actually see is that subdomains, or more precisely sub-brands or sub-divisions, expose their own llms.txt files. That is a different problem space. What we are discussing here is serving different llms.txt content per site language, where the language is inferred from the site’s web domain.
Serving multiple sub-sites, such as brands, divisions, or microsites, from the same Drupal instance is a classic Domain module use case.
Notably, https://www.lg.com/pl/llms.txt still serves English content. This suggests that the
/plpath is not being used for language-specific llms.txt output.My current work-in-progress hypothesis for this problem space looks like this:
Sub-brands or sub-divisions
Handled via the Domain module, and potentially requiring a dedicated domain_llms_txt bridge module.
Reason: Multiple llms.txt files across domains or subdomains are not multiple versions of the same instruction set. They are separate contracts for separate site identities.
Multilingual sites
The key difference with domain-based language negotiation is that we do not change the core rule that
https://HOST/llms.txtmust resolve. Whether that ishttps://foo.com/llms.txtorhttps://hu.foo.com/llms.txt, the rule remains consistent.The reason behind this is simple, those bots that fetch /llms.txt they stop at https://host/llms.txt and do not perform language negotiation.
Comment #16
bceyssensBased on the information we got from this thread we created the submodule that makes the bridge with Domain module: https://www.drupal.org/project/domain_llms_txt.
All feedback is welcome.
Comment #17
mxr576Wow! It is a great to see that llms_txt ecosystem is expanding. Will take a look when I find time.
Comment #18
mxr576I still haven't had a chance to take a look, but I have decided to document that extension in this module's README.md/project page for those who are looking for similar solutions. Also mark this issue as won't fix for now.
#3609204: Add documentation for multilingual and multi-domain support via Domain LLMs.txt
MRs welcomed! :)