BloomDesktop: Command for GitHub Copilot

.github/prompts/bloom-l10.prompt.md

bloom-l10 is a command for GitHub Copilot from BloomBooks/BloomDesktop. It costs 5 tokens per session (943 once invoked), scanned A, original, MIT.

make a string localizable.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is BloomBooks/BloomDesktop's own configuration. It tells GitHub Copilot how to work on BloomDesktop itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything BloomDesktop configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { useL10n } from "../../react_components/l10nHooks";.

Reuse

Borrowing it

Nothing to install: this file belongs to BloomBooks/BloomDesktop. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/BloomBooks/BloomDesktop/master/.github/prompts/bloom-l10.prompt.md
Clone the repo
git clone --depth 1 https://github.com/BloomBooks/BloomDesktop

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bloom-l10

README.md
[![agentmods](https://agentmods.dev/badge/commands/bloombooks/bloomdesktop/bloom-l10.svg)](https://agentmods.dev/commands/bloombooks/bloomdesktop/bloom-l10)
Your own site
<a href="https://agentmods.dev/commands/bloombooks/bloomdesktop/bloom-l10"><img src="https://agentmods.dev/badge/commands/bloombooks/bloomdesktop/bloom-l10.svg" alt="Measured on agentmods" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 943 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00005 $0.00943
Opus 5 $0.00003 $0.00472
Sonnet 5 $0.00001 $0.00189
Haiku 4.5 $0.00001 $0.00094

Measured today against content hash 9e1bda979aec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

bloom-l10 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/prompts/bloom-l10.prompt.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

This project uses the following methods to make strings localizable in react components:

  • use an l10n-aware component such as My Text, My Text, etc.
  • useL10n("My Text", "myKey") — note the order: the English text first, then the id

There should be a selected line with a string. If there is not, stop and tell me that I have to select a line with a string to be localized.

Wrapping the string

If the string is already wrapped in a l10n-aware component or useL10n, go on to the XLF portion of these instructions. Otherwise, wrap it in useL10n2(). Or useL10n(english, id).

// somewhere in Foobar dialog
<button>Brighten everything</button>

to this:

import { useL10n } from "../../react_components/l10nHooks";
// somewhere in Foobar dialog
<button>{useL10n("Brighten everything", "FoobarDialog.BrightenEverything")}</button>

The import above will need the correct path relative to the current file. The file lives at src/BloomBrowserUI/react_components/l10nHooks.ts.

  • Normally, don't fill in l10nComment parameter when using useL10n, that just clutters the code. We will put context in the xlf file instead. However if you want to use the later parameters, then you have to put something in that parameter.

Adding to XLF files

For each string, we have to have a matching record in one of the xlf files in the DistFiles/localization/en folder. There are high (DistFiles/localization/en/Bloom.xlf), medium (DistFiles/localization/en/BloomMediumPriority.xlf), and low (DistFiles/localization/en/BloomLowPriority.xlf) priority options. Check all three xlf files for a matching record. If you find it, tell me where it is. If you don't find it, stop and ask me which priority I want with numbers so I can respond 1 (high), 2 (medium), or 3 (low). Then create the record in the appropriate file, placing the record next to similar records. For example, here we would want to group the FoobarDialog records together.

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 51 lines · 5 tokens per session scan A 9e1bda979aec

Subscribe to this mod's changes

bloom-l10 is a command published in the GitHub repository BloomBooks/BloomDesktop (44 stars, last pushed today), licensed MIT. It adds 5 tokens to every session and 943 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.