Namespaces

Isolated translation workspaces — what they contain, how to create and configure them, and what happens on every destructive change.

Not verified yet

A namespace is the top-level container in LangSync. Each namespace has its own default language, its own set of target languages, its own terms, and its own translation progress. Namespaces are fully isolated from each other: the same term mark in two namespaces refers to two unrelated keys, and nothing translated in one namespace leaks into another.

Most teams create one namespace per deployable surface — web-app, ios-app, marketing-site — or one per client for agencies managing multiple brands. The glossary is the one thing namespaces share: it's organization-wide and applies to AI translations in every namespace.

What a namespace has

FieldWhat it doesRules
NameThe slug used in API paths, the CLI, and the dashboard URL.Letters, digits, hyphens, underscores (^[a-zA-Z0-9\-_]+$). Case-sensitive. Unique within your organization.
Description (context)Free-text note about what lives in the namespace, shown in the namespace list and pickers. Automatic translation of terms gives it to the model as context.Free text.
Default languageThe language your source strings are written in. Every term has a value in this language; all other languages are translations of it.Set at creation; changeable later.
Target languagesThe languages you want translations in.Attach and detach at any time.
Message syntaxWhat the namespace's strings are: plain or icu. Decides what automatic translation protects and what is checked before storing.plain unless set; changeable later. See Message syntax.
TermsThe translation keys, each with one translation per attached language.See Terms.

The namespace list also shows two computed columns: Total terms and Progress — the percentage of term × language cells that have a translation. Progress is the quickest way to spot a namespace that needs an auto-translate run.

Create a namespace

Open Namespaces

In LangSync → Namespaces, click New namespace (or Create your first namespace if the list is empty).

Fill in the form

  • Name — e.g. web-app. Prefer short, lowercase, hyphen-separated names: they appear in URLs, API paths, and CLI commands, and they're case-sensitive everywhere.
  • Description — e.g. "Product UI strings for the checkout flow".
  • Default language — searchable dropdown of all shared and custom languages.
  • Message syntax — Plain (the default) or ICU MessageFormat; see Message syntax.

Create

Click Create item. You land back on the list; open the namespace to attach target languages and add terms.

You can also create namespaces from the CLI (nrc langsync namespaces create web --default-language en), with --message-syntax icu when its strings are ICU messages; see CLI.

Namespace settings

Open a namespace, then ⋯ → Namespace settings. From here you can:

  • Rename the namespace.
  • Edit the description.
  • Change the default language.
  • Change the message syntax (Plain or ICU MessageFormat).
  • Pick a default prompt that every automatic translation in the namespace uses (see Custom prompts).
  • Manage languages — current languages appear as badges (with an × to remove each), and a searchable picker adds new ones.

What each change actually does

  • Renaming updates the slug used in API paths immediately. Any deployed application or CLI config still using the old name starts failing until you update it — the Public API returns an authentication error for unknown namespace names, and the CLI reports the namespace as not accessible.
  • Changing the default language keeps every existing translation, including the old default's. It changes what counts as the source: new AI translations use the new default language's value as their source text.
  • Adding a language creates an empty column — no translations exist for it until you write them or run auto-translate.
  • Removing a language deletes every translation stored in that language across every term in the namespace. The terms themselves and their other-language translations are untouched. There is no undo; the removal is recorded in the audit log as namespace.language_removed.

Message syntax

Software strings hold variables (Hello {name}, %d files) and often plurals. The message syntax tells LangSync what a namespace's strings are, so automatic translation keeps what must survive and checks the answer before it stores it.

plain (the default). Before the model sees a text, LangSync replaces these with tokens the answer must keep, and puts them back after:

  • {{name}} and {name} variables,
  • printf verbs such as %s, %d, %1$s, %(name)s and %%,
  • HTML tags (<b>, </a>, <br/>), which must also stay in the same order and balanced,
  • character entities such as &amp; and &#160;.

What people write is stored as it is.

icu (ICU MessageFormat 1, the subset Paraglide's ICU plugin supports). LangSync parses every message itself:

  • Plural forms of the target language. A plural is translated into the forms the target language has (Czech gets one, few, many and other from an English one and other), not copied from the source.
  • Whole sentences. The model translates each combination of branches as a complete sentence and never sees ICU syntax, so it can't translate plural or other, or lose {count}.
  • Checks before storing. The translated message is parsed again and must have the source's arguments, the target's plural forms and the source's tags. A translation that fails is not stored and is reported with a code.
  • People's writes are checked. A dashboard edit, a new term, a CLI push and a bulk import are refused when the message is broken (TERM_TRANSLATION_INVALID).

ICU messages has the supported syntax, the example of a Czech plural, quoting rules and every code.

Set it when you create the namespace or later:

  • Dashboard: Message syntax in the new-namespace form or in Namespace settings, Plain or ICU MessageFormat. The namespace's page shows the current one next to its name.
  • CLI: nrc langsync namespaces create web --default-language en --message-syntax icu, or nrc langsync namespaces update web --message-syntax icu.
  • API: messageSyntax (plain or icu) on POST /namespaces or PATCH /namespaces/{namespaceName}; namespace reads return it. Another value is refused with 400 INVALID_MESSAGE_SYNTAX, whose data.allowed lists the values.

Changing it rewrites nothing that is stored. It decides how the next translations are made and how the next writes are checked. After a switch to icu, a source text that is not a valid message is not translated automatically (it is reported as icu_invalid) until someone fixes it.

Delete a namespace

From the namespaces list, use the row's delete action. The confirmation dialog states it plainly: "This action cannot be undone."

Deleting a namespace permanently removes:

  • every term and every translation in it,
  • every sync job record targeting it,
  • every bulk import record and its uploaded files.

Two things are not affected, because they're organization-scoped, not namespace-scoped: API keys and the glossary. The deletion is written to the audit log as namespace.deleted.

Naming conventions

  • Group by deployable surface, not by language pair. LangSync already handles multiple languages inside one namespace — you never need web-app-de.
  • Keep names short and lowercase. They show up in API URLs, in .langsync.json, and in every CLI invocation.
  • Names are case-sensitive. Web-App and web-app are two different namespaces. Sticking to lowercase avoids the confusion entirely.

Common errors

SymptomCause
INVALID_NAME when creatingThe name contains characters outside letters, digits, -, _.
INVALID_MESSAGE_SYNTAXmessageSyntax is not plain or icu.
Creation rejected with a conflictA namespace with that name already exists in the organization.
CLI: "namespace 'X' is not accessible to the active organization"Wrong organization active, the namespace was renamed/deleted, or the name's casing doesn't match.
402 / "organization blocked" on createYour organization has unpaid invoices — see Platform → Billing.
  • Languages — shared vs. custom languages and how attachment works.
  • Terms — what lives inside a namespace.
  • CLI — managing namespaces from the terminal.

On this page