spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Add project-level language configuration that all /speckit.* commands consistently enforce

Open Nicered opened this issue 1 year ago โ€ข 5 comments

Summary

Spec Kit currently allows users to define language rules in the project constitution, but the LLM often forgets these rules across commands such as specify, plan, tasks, and implement.

This feature request proposes a project-level language configuration that every /speckit.* step must consistently respect. This is not about implementing i18n or translation features โ€” only about enforcing a stable language preference.


Problem

1. Constitution rules are not consistently enforced

Even with strict rules like:

All narrative text must be written in Korean unless explicitly requested otherwise.

The LLM often reverts to English, especially during:

  • /speckit.plan
  • /speckit.tasks
  • /speckit.implement

This becomes more frequent across multiple iterations.

2. Repeating language instructions is inefficient

Users must repeatedly say โ€œPlease answer in Koreanโ€ for every command. This contradicts the idea of a persistent project context or โ€œsingle source of truth.โ€


Proposed Solution (Conceptual)

Introduce a first-class project-level configuration, for example:

{
  "language": "ko-KR",
  "strict_language_enforcement": true
}

All /speckit.* flows should then:

  1. Read this configuration before constructing prompts
  2. Inject the language rule at a high-priority level (similar to a system instruction)
  3. Apply the rule consistently across multi-step processes
  4. Honor the rule unless explicitly overridden by the user for that command

This does not require:

  • internationalization
  • locale-based templates
  • translation automation

It only ensures the LLM stays aligned with the chosen language.


Expected Behavior

With this feature enabled:

  • specify, plan, tasks, and implement all output the chosen language consistently
  • No unexpected fallback to English
  • Long iterative workflows maintain stable language usage
  • Overrides only happen when intentionally specified

Why This Matters

  • Many teams use Spec Kit in multilingual environments
  • Certain projects require strict use of a non-English language
  • Constitution text alone is too easy for an LLM to forget
  • A structured configuration makes workflows predictable and reliable

Given Spec Kitโ€™s philosophy โ€” โ€œspec as the single source of truthโ€ โ€” language preference should be treated as part of that truth.


Additional Notes

  • This feature can be optional
  • English can remain the default
  • No translation features are required
  • Only a persistent โ€œuse this language unless overriddenโ€ mechanism is needed

I can provide additional examples or test cases if helpful.

Nicered avatar Nov 24 '25 00:11 Nicered

Feature Request: Project-level Language Configuration for All /speckit.* Flows

Summary

Spec Kit currently allows users to define language rules in the project constitution, but the LLM often forgets these rules across commands such as specify, plan, tasks, and implement.

This feature request proposes a project-level language configuration that every /speckit.* step must consistently respect. This is not about implementing i18n or translation features โ€” only about enforcing a stable language preference.


Problem

1. Constitution rules are not consistently enforced

Even with strict rules like:

All narrative text must be written in Korean unless explicitly requested otherwise.

The LLM often reverts to English, especially during:

  • /speckit.plan
  • /speckit.tasks
  • /speckit.implement

This becomes more frequent across multiple iterations.

2. Repeating language instructions is inefficient

Users must repeatedly say "Please answer in Korean" for every command. This contradicts the idea of a persistent project context or "single source of truth."


Proposed Solution (Conceptual)

Introduce a first-class project-level configuration, for example:

{
  "language": "ko-KR",
  "strict_language_enforcement": true
}

All /speckit.* flows should then:

  1. Read this configuration before constructing prompts
  2. Inject the language rule at a high-priority level (similar to a system instruction)
  3. Apply the rule consistently across multi-step processes
  4. Honor the rule unless explicitly overridden by the user for that command

This does not require:

  • internationalization
  • locale-based templates
  • translation automation

It only ensures the LLM stays aligned with the chosen language.


Reproduction / Example Use Case

Scenario: Korean Software Team Using Spec Kit

A Korean development team wants to use Spec Kit for their internal project with all documentation in Korean for stakeholder communication.

Current Behavior (Without Language Configuration)

Step 1: Create constitution

/speckit.constitution
ํ”„๋กœ์ ํŠธ์˜ ํ•ต์‹ฌ ์›์น™์€ ์ฝ”๋“œ ํ’ˆ์งˆ, ํ…Œ์ŠคํŠธ ํ‘œ์ค€, ์‚ฌ์šฉ์ž ๊ฒฝํ—˜ ์ผ๊ด€์„ฑ์ž…๋‹ˆ๋‹ค.
๋ชจ๋“  ๋ฌธ์„œ๋Š” ํ•œ๊ตญ์–ด๋กœ ์ž‘์„ฑ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

constitution.md:

# Project Constitution

## Core Principles
- ์ฝ”๋“œ ํ’ˆ์งˆ์„ ์ตœ์šฐ์„ ์œผ๋กœ ํ•ฉ๋‹ˆ๋‹ค
- ๋ชจ๋“  ๊ธฐ๋Šฅ์€ ํ…Œ์ŠคํŠธ ์ปค๋ฒ„๋ฆฌ์ง€ 80% ์ด์ƒ ์œ ์ง€
- **๋ชจ๋“  ๋ฌธ์„œ์™€ ์„ค๋ช…์€ ํ•œ๊ตญ์–ด๋กœ ์ž‘์„ฑ**

Step 2: Create specification

/speckit.specify
์‚ฌ์šฉ์ž๊ฐ€ ์‚ฌ์ง„์„ ์•จ๋ฒ”๋ณ„๋กœ ์ •๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋งŒ๋“ค์–ด์ฃผ์„ธ์š”.
์•จ๋ฒ”์€ ๋‚ ์งœ๋ณ„๋กœ ๊ทธ๋ฃนํ™”๋˜๋ฉฐ, ๋ฉ”์ธ ํŽ˜์ด์ง€์—์„œ ๋“œ๋ž˜๊ทธ ์•ค ๋“œ๋กญ์œผ๋กœ ์žฌ์ •๋ ฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

โŒ Problem: spec.md generated in English despite Korean constitution

# Feature Specification: Photo Album Manager

## Overview
This feature allows users to organize photos into albums...

## User Scenarios
1. User opens the application
2. User creates a new album by clicking "Create Album"
3. User drags photos into the album...

User has to manually correct:

Please write everything in Korean as stated in the constitution.

Step 3: Create plan

/speckit.plan
Vite์™€ ์ตœ์†Œํ•œ์˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

โŒ Problem: plan.md reverts to English again

# Implementation Plan

## Technical Context
- **Frontend Framework**: Vite with vanilla JavaScript
- **Database**: SQLite for local storage

## Architecture Decisions
The application will use a modular structure...

User frustrated, has to remind again:

๋‹ค์‹œ ํ•œ๋ฒˆ ๊ฐ•์กฐํ•˜๋Š”๋ฐ, ๋ชจ๋“  ๋ฌธ์„œ๋ฅผ ํ•œ๊ตญ์–ด๋กœ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”. Constitution์„ ์ฝ์–ด๋ณด์„ธ์š”.

Step 4: Generate tasks

/speckit.tasks

โŒ Problem: Falls back to English a third time

# Implementation Tasks

## Phase 1: Database Setup
- [ ] Create SQLite schema for albums
- [ ] Create SQLite schema for photos

Expected Behavior (With Language Configuration)

constitution.md with language config:

# Project Constitution

```json
{
  "language": "ko-KR",
  "strict_language_enforcement": true
}

Core Principles

  • ์ฝ”๋“œ ํ’ˆ์งˆ์„ ์ตœ์šฐ์„ ์œผ๋กœ ํ•ฉ๋‹ˆ๋‹ค

**Step 2: Create specification**
```bash
/speckit.specify
์‚ฌ์šฉ์ž๊ฐ€ ์‚ฌ์ง„์„ ์•จ๋ฒ”๋ณ„๋กœ ์ •๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋งŒ๋“ค์–ด์ฃผ์„ธ์š”.

โœ… spec.md automatically in Korean:

# ๊ธฐ๋Šฅ ๋ช…์„ธ: ์‚ฌ์ง„ ์•จ๋ฒ” ๊ด€๋ฆฌ์ž

## ๊ฐœ์š”
์ด ๊ธฐ๋Šฅ์€ ์‚ฌ์šฉ์ž๊ฐ€ ์‚ฌ์ง„์„ ์•จ๋ฒ”์œผ๋กœ ์ •๋ฆฌํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค...

## ์‚ฌ์šฉ์ž ์‹œ๋‚˜๋ฆฌ์˜ค
1. ์‚ฌ์šฉ์ž๊ฐ€ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์—ฝ๋‹ˆ๋‹ค
2. "์•จ๋ฒ” ๋งŒ๋“ค๊ธฐ"๋ฅผ ํด๋ฆญํ•˜์—ฌ ์ƒˆ ์•จ๋ฒ”์„ ๋งŒ๋“ญ๋‹ˆ๋‹ค

Step 3: Create plan

/speckit.plan
Vite์™€ ๋ฐ”๋‹๋ผ JavaScript๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

โœ… plan.md stays in Korean:

# ๊ตฌํ˜„ ๊ณ„ํš

## ๊ธฐ์ˆ  ์ปจํ…์ŠคํŠธ
- **ํ”„๋ก ํŠธ์—”๋“œ ํ”„๋ ˆ์ž„์›Œํฌ**: Vite์™€ ๋ฐ”๋‹๋ผ JavaScript
- **๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค**: ๋กœ์ปฌ ์ €์žฅ์„ ์œ„ํ•œ SQLite

Step 4: Generate tasks

/speckit.tasks

โœ… tasks.md stays in Korean:

# ๊ตฌํ˜„ ํƒœ์Šคํฌ

## 1๋‹จ๊ณ„: ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„ค์ •
- [ ] ์•จ๋ฒ”์šฉ SQLite ์Šคํ‚ค๋งˆ ์ƒ์„ฑ
- [ ] ์‚ฌ์ง„์šฉ SQLite ์Šคํ‚ค๋งˆ ์ƒ์„ฑ

No manual corrections needed throughout the entire workflow!


Impact Comparison

Metric Without Feature With Feature
Manual corrections needed 3-5 times per workflow 0 times
User frustration High (repetitive reminders) None
Consistency Breaks across commands Stable throughout
Time wasted ~10-15 minutes per feature 0 minutes
Stakeholder readiness Needs translation/cleanup Ready immediately

Why This Matters

  • Many teams use Spec Kit in multilingual environments
  • Certain projects require strict use of a non-English language
  • Constitution text alone is too easy for an LLM to forget
  • A structured configuration makes workflows predictable and reliable

Given Spec Kit's philosophy โ€” "spec as the single source of truth" โ€” language preference should be treated as part of that truth.


Teams That Would Benefit

  1. Non-English development teams: Korea, Japan, France, Germany, Brazil, etc.
  2. Government projects: Legal requirements for native language documentation
  3. Enterprise compliance: Internal policy requiring local language
  4. Open-source localization: Projects with multilingual contributors

Additional Notes

  • This feature can be optional
  • English can remain the default
  • No translation features are required
  • Only a persistent "use this language unless overridden" mechanism is needed

I can provide additional examples or test cases if helpful.

Nicered avatar Nov 24 '25 01:11 Nicered

/speckit.specify does not refer to the constitution.md at all. I consistently have issues where the wrong dates are being used even though in my constitution file, I have:

### VIII. System Date/Time for Timestamps (NON-NEGOTIABLE)
All timestamps and date/time values MUST be obtained from the system clock at runtime. Code MUST NEVER assume or hardcode the current date or time. Use appropriate system APIs (e.g., `datetime.now()`, `time.time()`, `time.time_ns()`) to obtain the current date/time when needed. This ensures correctness across different execution contexts, time zones, and prevents date-related bugs from stale assumptions.

RA-Rob avatar Dec 03 '25 18:12 RA-Rob

Great proposal! I fully support this feature request. ๐Ÿ‘

I'd like to suggest an extension to cover an additional use case: separating specification language from code language.

Use Case

Many non-English speaking teams want to:

  • Write specifications, plans, and tasks in their native language (for better understanding by stakeholders, product owners, and team members)
  • Generate code in English (industry standard for variable names, function names, comments, and technical documentation)

Proposed Extension

The configuration could support granular language settings:

{
  "languages": {
    "specs": "fr-FR",      // constitution, spec.md, plan.md, tasks.md
    "code": "en-US",       // variable names, function names, code comments
    "docs": "fr-FR"        // README, user-facing documentation (optional)
  },
  "strict_enforcement": true
}

Example Workflow

With specs: "fr-FR" and code: "en-US":

  • /speckit.specify โ†’ User stories and acceptance criteria in French
  • /speckit.plan โ†’ Technical plan narrative in French, but component names like UserAuthenticationService in English
  • /speckit.tasks โ†’ Task descriptions in French
  • /speckit.implement โ†’ Generated code with English identifiers and comments

Why This Matters

  • Keeps specifications accessible to non-technical French/German/Korean/etc. stakeholders
  • Maintains code quality and international collaboration standards
  • Aligns with common enterprise practices where business docs are localized but codebases remain in English

s-celles avatar Jan 02 '26 17:01 s-celles

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jun 02 '26 01:06 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar Jul 03 '26 00:07 github-actions[bot]