Audits, glossary and rules
Ask how a language is doing, turn the findings into fixes and make every future translation better.
Three things shape every translation besides the source text: the context of the string, the glossary and the rules. Audits are how you find out what to put in them.
Glossary
Glossary terms are brand and product names that must never be translated, and terms with a required translation per locale. Every translation prompt includes them.
npx @meterapp/glossa upsert_glossary_term --json '{"term":"Meter","do_not_translate":true}'npx @meterapp/glossa upsert_glossary_term --json '{"term":"workspace","translations":{"es":"espacio de trabajo","de":"Arbeitsbereich"}}'Rules
Rules are standing instructions appended to every translation prompt, for one locale or all of them: tone, formality, length limits, how to treat units or dates.
npx @meterapp/glossa add_rule --json '{"locale":"es","body":"Use tú, never usted."}'npx @meterapp/glossa add_rule --json '{"locale":null,"body":"Keep button labels under 20 characters."}'Better context fixes the cause rather than the symptom: update_unit with a description of where a string appears, and retranslate: true, redoes its machine translations in every locale with the new context.
Code context
An agent with your repository open can record where each key is used: the call site with a few lines of code, what the string is (a button, a status, a label), the screen and a note. set_key_context stores it on the key and rates it strong, weak or missing, and every translation prompt reads it, so “Charge” on a pay button and “Charge” on a receipt are translated for what they are.
npx @meterapp/glossa set_key_context --json '{"project":"app","keys":[{"key":"receipt.charge","role":"label","screen":"Trip receipt","usages":[{"path":"app/Receipt.tsx","line":42,"excerpt":"<Row label={t("receipt.charge")} value={fare.fee} />"}]}]}'npx @meterapp/glossa list_weak_context --json '{"project":"app","locales":["es"]}'Every AI translation keeps the model's confidence and its own rating of the context it had. When the context was weak or missing it also says what would settle it. list_weak_context lists those strings with their keys and file paths; answer them with set_key_context and retranslate: true to redo the drafts. Reviewed and approved translations are never redone.
Project context
The product context, glossary and rules belong to the workspace, and every project shares them. A project that is a different product (a marketing site in a workspace whose context describes a mobile app) sets its own product_context, which replaces the workspace's in every prompt for its strings. With inherit_glossary or inherit_rules false the workspace glossary or workspace rules stay out too, and rules added with project apply only to that project.
npx @meterapp/glossa update_project --json '{"project":"site","product_context":"Our public marketing site, for developers. The brand is Acme in every language.","inherit_glossary":false,"inherit_rules":false}'npx @meterapp/glossa add_rule --json '{"project":"site","locale":"de","body":"Use Sie."}'list_missing_translations, list_translations_for_audit and run_audit take the same project and use its context.
Strings are shared within a unit pool: the same English in two projects of one pool is translated once. A project with its own context gets a pool of its own, so "Call" on a developer site never reuses the "call a driver" translation of a taxi app. Projects whose contexts fit together share one by naming it (unit_pool), and "workspace" joins the workspace pool anyway. When a project changes pool, its next push moves its keys and keeps the translations of strings no other pool used; the rest are translated again in its context.
npx @meterapp/glossa update_project --json '{"project":"site","unit_pool":"marketing-sites"}'Audits
An audit reviews one locale as a whole and answers a question you ask, such as "How is our Spanish?" or "Are brand names consistent?". There are two ways to run one: a coding agent can audit inline, reading the code that uses each string, or Glossa's AI can audit a sample and file tasks for you to decide.
Inline, with the codebase
An agent working in your repository (Claude Code, Codex, Cursor with the Glossa plugin) can see where every string is used, so it can settle the ambiguous ones itself: whether "Open" is a button or a status, what a fragment like "and {count} more" is joined to, how much room a label has. It fixes what is wrong as it goes, and the review queue stays empty.
list_translations_for_audit returns a locale's existing translations, most recently changed first. Each comes with its source text, status, every key that uses it with the file path and comment, placeholders, matching glossary terms and flags that say what to check first:
placeholder_mismatch,glossary_miss,same_as_source: usually wrong on their face.short_label,fragment,no_context: ambiguous until you read the call site.
The first page also returns the product context, the locale's glossary and its rules. Filter AI output with status: ["machine", "needs_review"] and keep to the strings worth a look with flagged_only.
npx @meterapp/glossa list_translations_for_audit --json '{"locale":"es","project":"web","status":["machine","needs_review"],"limit":200}'npx @meterapp/glossa submit_translations --json '{"translations":[{"unit":"<unit_id>","locale":"es","text":"Abrir","note":"Toolbar button"}]}'The agent rewrites AI drafts with submit_translations, which never replaces reviewed, approved or imported work. It changes a wording a person chose only with set_translation after you agree. When several fixes share a cause it proposes a rule or a glossary term, shows you the exact wording, and adds it only after you approve. An inline audit files no tasks. The glossa-audit skill in the plugin walks through all of this.
With Glossa's AI
With no codebase in view (a chat, or the dashboard), run_audit has Claude read a sample of the locale against the glossary and rules. It scores the locale, answers the question, and files tasks:
audit_finding: a specific translation that is wrong, with a proposed fix.applysets it.glossary_suggestion: a term to fix or protect.rule_suggestion: an instruction that would prevent the same mistake next time.
npx @meterapp/glossa run_audit --locale es --question "Are we consistent about tú and usted?"npx @meterapp/glossa get_audit --json '{"audit":"<audit_id>"}'npx @meterapp/glossa tasks --kind audit_findingAudits run as background jobs; run_audit returns an audit_id and a job_id. Read the result with get_audit once the job is done. The AI sees strings, not the code that uses them, so it files a task wherever it is unsure. On a large workspace, an inline audit by an agent leaves you far fewer tasks to work through.
Each plan includes a number of AI audits a calendar month (Free 3, Cloud 30, Enterprise 300); past it run_audit returns 402 audit_limit with the date the count resets. Inline audits by an agent use no AI credits and have no limit.
The loop
- Audit a locale with a pointed question.
- Fix the translations that are wrong: inline, or by applying the findings that are right and dismissing the rest.
- Add the rules and glossary terms that explain the mistakes.
- Audit again later. The same mistakes should not come back, because every new translation now follows the rules.