F1 ships with a fully translated interface for 12 locales, covering both the extension’s static identity strings and its runtime notification messages. VS Code automatically selects the correct locale based on your editor’s display language setting — no manual configuration is required. The two i18n mechanisms complement each other and together ensure every user-facing string appears in their language from the moment the extension loads.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/bastndev/f1/llms.txt
Use this file to discover all available pages before exploring further.
How Localization Works
F1 uses both of VS Code’s built-in i18n systems simultaneously.1. package.nls.*.json — Identity Strings
The package.nls.json file at the repository root contains the default (English) values for %placeholder% tokens referenced in package.json, including displayName and description. For every supported non-English locale there is a corresponding package.nls.<locale>.json file (e.g. package.nls.es.json, package.nls.zh-cn.json).
VS Code reads these files before the extension activates, so the extension’s name and description appear in the correct language in the Extensions view, search results, and marketplace listings without any runtime cost.
2. l10n/bundle.l10n.*.json — Runtime Notifications
Runtime strings — such as showInformationMessage dialogs, modal prompts, and button labels — are stored in l10n/bundle.l10n.<locale>.json files inside the l10n/ directory. These are loaded on demand by VS Code’s vscode.l10n API.
Call sites in the extension use vscode.l10n.t("English text") to look up the translated string at runtime:
"l10n": "./l10n" field in package.json tells VS Code where to find these runtime bundles:
The Prompt Composer’s 5-language source picker (English, Spanish, Chinese,
Portuguese, Russian) is a separate feature from the UI locale. It controls
which language you write prompts in and auto-translates them to English before
sending — it operates independently of your VS Code display language.
Supported Locales
F1 ships translations for 12 locales. English is the built-in default; the remaining 11 locales have bothpackage.nls.<locale>.json identity files and l10n/bundle.l10n.<locale>.json runtime bundles.
| Language | Locale Code | Flag |
|---|---|---|
| English | en | 🇺🇸 |
| Spanish | es | 🇪🇸 |
| Chinese (Simplified) | zh-cn | 🇨🇳 |
| German | de | 🇩🇪 |
| French | fr | 🇫🇷 |
| Japanese | ja | 🇯🇵 |
| Korean | ko | 🇰🇷 |
| Portuguese (Brazil) | pt-br | 🇧🇷 |
| Russian | ru | 🇷🇺 |
| Vietnamese | vi | 🇻🇳 |
| Hindi | hi | 🇮🇳 |
| Arabic | ar | 🇸🇦 |
Repository Layout
The localization files live at the root level and in thel10n/ directory: