Repository navigation
Releases
Localization OS 1.3.1
Localization OS 1.3.1
Release 1.3.1 is a dependency security update on top of 1.3.0. Nothing else changes: no migration, no settings,
no behaviour change.
Security and dependency updates
opentelemetry-apimoves from 1.45.1 to 1.45.2 (CVE-2026-126360). It is pinned inrequirements.lockand in the
Vendor Studio image's lock; both now carry the 1.45.2 hashes from PyPI.
Upgrade notes
- Refresh the dependencies:
pip install -r requirements.lock. This installsopentelemetry-api1.45.2; no other
package moves. - There is no migration. A backup before upgrading is still good practice (
loc-tms db backup-full). - In the container, rebuild the image so the new pin lands.
Known limitations
- Unchanged from 1.3.0. An image scan of the Dockerfile still flags CVE-2026-78661 in the
golang.org/x/netcopy
inside the tailscale binaries (v1.104.7 is the newest stable release); it applies only when Tailscale is turned on
with an auth key.
Localization OS 1.3.0
Localization OS 1.3.0
Release 1.3.0 moves the Bilingua parsing engine to 0.10.0 and carries a round of base image and dependency
security updates. It adds one small, additive database migration.
Highlights
- Bilingua 0.10.0. The parsing engine (
patois-labs/bilingua, Apache-2.0) is pinned to 0.10.0, installed from
PyPI with its two wheel hashes, for the same platforms as before: x86_64 Linux (glibc 2.28 or newer) and Windows
x64. On any other platform the package is skipped and every format keeps its Python filter. The settings, the
default (bilingua_formats=all) and the formats Localization OS routes to Bilingua are unchanged. - Stored documents keep working. Under the Localization OS profile, 0.10.0 keeps the same profile version and
every skeleton schema, so documents imported with 0.9.1 export with 0.10.0 without a re-import, apart from the
rare inputs under Known limitations. A comparison of stored documents parsed by both versions (about 1,700
real-world files plus the test fixtures) found two that differ.
Security and dependency updates
- The container base images are re-pinned:
python:3.13-slimto the 2026-11-22 digest (also in the Vendor Studio
image) andtailscale/tailscalefrom v1.104.2 to v1.104.7. - The runtime image's package list names
zlib1g, so the Debian security update for it (CVE-2026-85091) is
installed even when the base image still carries the older build. pyasn1moves from 0.6.4 to 0.6.5.
For developers
run_completiontakes an optionalhistory(earlier chat turns, placed between the system message and the new
prompt) for multi-turn callers. Every provider sends a byte-identical request when it is absent, and nothing in
the core passes it; a provider that cannot take chat turns receives them flattened into its prompt.- Workflow steps gain two inert columns,
doc_agent_modeanddoc_agent_chunk, used by an add-on that is not part
of this edition. They default to empty and survive workflow copies. No door in this edition (web, API, CLI, MCP)
sets them, a step save that tries to set a mode is refused, and every step runs per segment as before.
Upgrade notes
- Back up first, with the app stopped (
loc-tms db backup-full). Rolling back after the migration ran means
restoring this backup. - Refresh the dependencies:
pip install -r requirements.lock. This installsbilingua0.10.0 on x86_64 Linux
and Windows x64 andpyasn10.6.5. - The migration runs on its own at the first start (
init_dbrunsalembic upgrade head; the container
entrypoint does the same on Postgres). One new revision,a6d2e9b4c1f7, on top of 1.2.0's head
e5a1c9d3b7f2: it adds the two step columns above (doc_agent_modenot null with an empty default,
doc_agent_chunknullable). Existing steps read empty and behave exactly as before. - In the container, rebuild the image without a stale layer cache, so the re-pinned bases and the Debian security
updates land. The build checks thatbilinguaimports on x86_64.
Known limitations
- An HTML
<title>or<textarea>is now written as typed: a translation that contains&,<or>there
exports differently from 1.2.0. - A document imported with 0.9.1 asks for a re-import at export when it has a title or textarea holding markup (for
example a<BR>inside a<title>, now read as text), an XLSX with a repeated cell reference, a second byte order
mark (DOCX, PPTX, XLSX, XLIFF) or a beta-namespace XLSX root. The comparison above found only the<BR>case. - A very large email (.eml) can now be refused by the input limits, at upload and at export; a stored 0.9.1
document of that size fails at export with the limit message, and a re-import is refused the same way. - An image scan of this release's Dockerfile still flags CVE-2026-78661 in the
golang.org/x/netcopy inside the tailscale binaries
(v1.104.7 is the newest stable release). It applies only when Tailscale is turned on with an auth key. - The known output differences between Bilingua and the Python filters listed in the 1.2.0 notes still apply.
Localization OS 1.2.0
Localization OS 1.2.0
Release 1.2.0 makes Bilingua the file parsing engine and carries a large set of file filter fixes. Bilingua is
the open source Rust parsing engine (patois-labs/bilingua). It is installed with the app and on by default for
all 85 formats it parses. The filter fixes tighten security around hostile files, make archive handling safer,
repair encoding and code page handling, speed up the slowest readers and correct a long list of format-specific
details.
There is no database migration in this release. Upgrading is a dependency refresh.
Highlights
- Bilingua is the parsing engine, on by default. The install-wide setting
bilingua_formatsnow defaults to
all: every format Bilingua parses is read by it on new uploads. A blank value switches back to the built-in
Python filters for every format; a comma list such asmd,json,popicks formats. The setting is on the Settings
page (File parsing), inloc config set bilingua_formats ..., in the admin API and in the MCP settings tool,
and the environment variableLOC_TMS_BILINGUA_FORMATSoverrides it. An unknown format name, or a list of more
than 256 names, is refused with nothing saved. - Documents keep their engine. A document imported before the upgrade stays on the filter that imported it,
and a document imported by Bilingua is always read and exported by Bilingua, whatever the setting says later.
Emptying the list stops new Bilingua imports at once and never moves an existing document. If Bilingua's
profile for a stored document no longer matches at export, the export asks for a re-import instead of failing. - Same tokens, same translation memory, for nearly every format. Bilingua numbers inline tags and
placeholders with the same text the Python filters produce, so existing translation memory keeps matching.
The exceptions are listed under Known limitations. - Shadow mode.
bilingua_shadow_formatsalso parses new uploads with Bilingua in the background and logs only
counts and hashes, never content; nothing stored changes. It is empty by default. - Platform note. The Bilingua wheel is published for x86_64 Linux (glibc 2.28 or newer, manylinux 2_28) and
Windows x64. On any other operating system or machine (for example macOS, aarch64 Linux or Alpine) the package
is skipped at install time, the Settings page says the module is not installed, and every format keeps its
Python filter. Nothing else changes. On x86_64 Linux with an older glibc,pip install -r requirements.lock
stops with no matching wheel; use a newer base system.
Security and injection guards
- Translated text can no longer inject markup or code into Markdown and MDX, SVG, PHP, JavaScript and TypeScript,
JSP and AsciiDoc outputs; heading escapes, indentation, backticks, backslashes and marks next to code spans are
kept intact. - Text in a translation that merely looks like a placeholder or tag is kept as text on export in 25 more filter
families, rather than being dropped or read as a code. - PDF reading runs in a child process with a wall-clock limit (
PDF_CALL_TIMEOUT_S60 s per step,
PDF_TOTAL_TIMEOUT_S150 s in all), and on Linux a memory cap (PDF_WORKER_MEMORY_MB1024), so a hostile file
cannot hold a worker. A PDF that exceeds a limit is refused with HTTP 413.PDF_WORKERS(default 4) bounds the
children running at once. - A start tag with more than 2,048 attributes or namespace declarations is refused before any XML parse, in plain
XML and inside package parts, because such a tag makes the XML library take minutes.
Zip and archive safety
- Packages and batch ZIPs refuse encrypted members and symbolic links, member names that leave the package
(absolute paths,.., drive letters, control characters, names made only of dots or spaces) and duplicate member
names, counting names that differ only in case or slash direction as the same. - Batch ZIPs name members that Windows cannot unpack (device names such as CON, and colons) and keep listing
symbolic links as skipped. - Office and XLIFF packages report the part that holds invalid XML, so the error says where to look.
Encodings and code pages
- A UTF-8 byte order mark before non-UTF-8 text in legacy subtitle formats is read as a mark, not as text.
- HTML reads rarer charsets, orphan end tags and mixed declarations; ISO-8859-8 is labelled only where the label
cannot mislead. - HTML Help projects read the code page of their project file, and Bilingua documents carry the same code page
warnings as the Python filters.
Speed
- HTML tokenizing and raw-quote handling are faster.
- XML resource files (resx and similar) build faster, and builds of a Bilingua document reuse the extraction of a
clean parse, about 28% faster. - On our own test corpus of 3,670 real-world files, 2,720 build byte for byte as the Python filters build them;
the differences in the rest are the classes listed under Known limitations. Parse and build times are close to the
Python filters for most formats and faster for the slowest ones; a few small-file formats are a few
milliseconds slower per file.
Format-specific fixes
- Web pages: a global rule keeps hidden forms hidden.
- Markdown: a paragraph that holds an image is translated in full-text mode; emphasis next to CJK text agrees with
the Python reader. - HTML and XML: orphan end tags, language and
translate="no"handling in DITA and DocBook, XLIFF comments with
versioned token numbering, tag budgets before every XML parse, NUL bytes and line endings, TTX targets that hold
only control characters. - Strings and resources: WiX strings beside comments are read, Fluent values with a leading dot on their own line
are escaped, a resx value that spans lines and is unchanged keeps its CRLF. - AsciiDoc: marks next to code marks, terms and titles keep their structure.
- Subtitles: MicroDVD control codes across a line break are refused.
- DOCX, XLSX, PPTX, ODF, IDML, ICML, MIF, XLIFF and CAT formats (SDLXLIFF, MQXLIFF, MXLIFF, TXML, TTX): the
Bilingua adapter keeps the same refusals, warnings, comments and skeleton bookkeeping as the Python filters. - CSV: column planning and formula injection guards are the same under Bilingua as under the Python filter.
Upgrade notes
- Back up first (
loc-tms db backup-full), as for any upgrade. - Refresh the dependencies:
pip install -r requirements.lock. This installsbilinguaon x86_64 Linux and
Windows x64. Nothing else is needed, and there is no database migration. - In the container, rebuild the image. The build checks that
bilinguaimports on x86_64. To build the engine
from source instead, seedocs/runbooks/bilingua-wheel.md. - To keep the previous behaviour for new uploads, set
bilingua_formatsto blank after upgrading. - A file that Bilingua refuses is reported with a plain message, as the Python filters do; the Python filter reads
the formats it handled before whenever the setting is blank or the module is missing.
Known limitations
- Bilingua's output differs from the Python filters' for some files. Known cases:
- server pages and HTML that declare a legacy charset but hold UTF-8 bytes (Bilingua writes the declaration
that matches the bytes), and a Shift_JIS HTML table character; - Arabic notes in DOCX (Bilingua keeps the bidi marks);
- wiki file links (Bilingua leaves option words untranslated);
- some reStructuredText, LaTeX, AsciiDoc and MadCap Flare details;
- PDF text cleaning and hyphen joins; STL, SCC and STF subtitle details; DXF percent codes; HTML Help CJK
labels;xml:langstamping in DITA and DocBook; WiX line breaks; - xcstrings: Bilingua offers one unit per phrase where the Python filter offered none for some catalogs;
- token numbering for MXLIFF mixed codes, and for typed unknown tokens in PPTX and XLSX text boxes, so TM
matches on those segments may need a review; - a non-localized build of a CSV with a target column.
To keep the Python filters' output for a format, leave it out ofbilingua_formats.
- server pages and HTML that declare a legacy charset but hold UTF-8 bytes (Bilingua writes the declaration
- A document imported by Bilingua cannot be exported on a machine without the Bilingua module; install the wheel or
re-import the file there.
Localization OS 1.1.0
Localization OS 1.1.0
Release 1.1.0 rebuilds the translation engine for speed and crash safety. Background work now lives in the
database and survives a restart, an install can run several worker processes beside its web process, Postgres
gets a supported migration path, an optional Rust module speeds up the hottest text functions, and translation
memory moves to exact matching with a new in-context (101%) match and a four-band leverage report.
A default install needs no configuration change: it keeps one process on its current database. Read the
upgrade notes below before upgrading, especially if you use fuzzy TM matching today.
Highlights
- Work that survives a restart. The database job queue is now the default: queued and running background
jobs (translations, exports, connector syncs, TM imports) are kept across a restart instead of being lost or
failed. Workflow runs are checkpointed after every step and resume from the step they were on after a restart
or a deploy; each step visit is recorded once, so finished steps are never run or billed twice. - Worker processes. One web process can hand all background work to worker processes started with
python -m app.worker. Choose the role withLOC_TMS_ROLE(all, the default single process;web; or
worker). In the container,LOC_TMS_WORKER_PROCESSES=Nstarts N workers beside the web process and supervises
them, andLOC_TMS_WEB_PROCESSES=Nruns several web processes. Exactly one worker runs the scheduler. - Fair scheduling. Customers take turns, a document's languages start and reach review together, started work
finishes before new work starts, and a long run hands its slot over between steps instead of holding it to the
end. Short jobs such as exports have their own worker pool and never wait behind long translations. - Faster everywhere. Fewer database statements per translate job and per editor save, audit-chain writes
committed in groups (every caller still waits for its own row; the chain format and verification are
unchanged), lighter request handling, live progress shared across processes, and on Postgres automatic retry of
write conflicts and reuse of query plans across pooled connections. - Big TMX imports in the background. A large TMX upload is streamed to disk and imported by a background job
with progress on the page, the API, the CLI and MCP, in about the same memory whatever the file size (up to
TMX_IMPORT_MAX_BYTES, 2 GiB, andTMX_IMPORT_MAX_UNITS, 5,000,000 units). Imports into the same project run
one at a time in the order they were submitted and can no longer lose units to each other. - Postgres for multi-process installs. Postgres is the recommended database once an install runs more than
one process; SQLite stays supported and remains the default.loc-tms db copy-to-postgrescopies an existing
SQLite install into an empty Postgres database in one all-or-nothing transaction. See
docs/guides/postgres-migration.md. - Optional native module.
locos_native, a Rust module, speeds up TM normalization and hashing, the tag check
and the built-in sentence splitter. Results are byte for byte the same as the Python functions, which stay as
the fallback. The Docker image builds it by default; source installs can build it by hand
(docs/guides/native-module.md) or skip it. - Exact TM with in-context matches and a leverage report. TM fills a segment on an exact match (100%) and now
also reports a 101% in-context match when the previous and next source segments (or, for software strings, the
key) match too; 101% fills are locked hard by default (tm_lock_ice). The project page shows a leverage report:
source words per target language in four bands (101% in context, repetitions, 100% exact, new), with a CSV
download. The same report isproject leverageandjob leverageon the CLI (--csv),
GET /api/projects/{id}/leverageandGET /api/jobs/{id}/leverageon the API, and a view in MCP. TMX export
writes the context so a round trip keeps 101% matches.
Security and dependencies
- Pillow 13, certifi, the OpenTelemetry API package the MCP SDK pulls in, filelock and setuptools updated for
published advisories. Pillow 13 needs Python 3.11, so Python 3.11 is now the minimum. - The Docker base images are re-pinned by digest (Python slim and Tailscale), and the Rust toolchain used by the
native build stage comes from a digest-pinned image; only the compiled module reaches the runtime image.
Changed or removed
- Fuzzy TM matching is removed. There are no more 75 to 99% TM suggestions or fills. The settings
tm_fill_threshold,tm_fuzzy_lock_modeandtm_context_floor(global and per TM match step) are removed. A
fill threshold of 100 or blank is still accepted and does nothing; any other value, and any value for the other
two, is refused on every surface with a message that names the change. The CLI flags--fill-threshold,
--fuzzy-lock-modeand--context-floorare hidden and refused the same way (--fill-threshold 100is still
accepted), and an APImin_scorebelow 100 is refused. - Leverage has four bands instead of seven. Scripts that read the old seven-band leverage output need
updating. Vendor rate cards price the same four bands: stored cards load with their fuzzy rates dropped, and
saving a card with fuzzy rates is refused. Vendor XLIFF exports no longer write fuzzy-match data (imports still
read it). - No TM examples in prompts from the core. Few-shot TM examples in translation prompts came from the fuzzy
scorer and go with it. A step that asks for examples gets none unless an add-on supplies them, so prompt text
changes for such workflows. job_queue_backenddefaults todb. The in-memory queue stays available as an opt-out
(loc-tms config set job_queue_backend memory); the split web and worker roles need the database queue.- In the web role a launch answers "queued" and the run shows QUEUED until a worker takes it (usually well under a
second). Scripts that expectedrunningright after a launch must acceptqueued. - An API key's last-used time is now recorded to the minute.
Upgrade notes for existing installs
- Back up first, with the app stopped (
loc-tms db backup-full). Rolling back after the new migrations ran
means restoring this backup: the older version does not start on the newer schema. - Python 3.11 or newer. Recreate the virtual environment if you run from source on 3.10.
- Check what uses fuzzy TM: TM match steps with a fill threshold below 100 or a fuzzy lock mode
(loc-tms workflow show <id>), the globaltm_fill_thresholdandtm_fuzzy_lock_mode, and vendor rate cards
with fuzzy rates. After the upgrade those steps fill exact and 101% matches only. A workflow exported before the
upgrade that carries the removed keys must have them taken out before it is imported again. - Migrations run on their own at the first start (
init_dbrunsalembic upgrade head; the container
entrypoint does the same on Postgres). Seven new revisions, in the order they run after 1.0.0's head
f2c8a6d4b1e7; the new head ise5a1c9d3b7f2:a7e3c9d1f4b2two nullable columns on customers and projects, reserved for an add-on; they stay empty
without it.b8d4f2a6c1e9theliveeventtable (cross-process live events, rows kept for minutes).b4d8e2f6a9c1engine reliability: run owner, heartbeat and resume count; step checkpoints with a unique
idempotency key; job retries; queue retry fields.c5a1e9d3b7f2thesharedstatetable (used only with more than one web process).d7b3f1a9c2e4an index on target locales by project.d6b3f8a2c4e1segmenttm.context_key, backfilled once from approved segments still in the database; it
also drops the three removed fuzzy columns of workflow steps. This is the one revision whose time grows with
your data: time it on a copy of a large install.e5a1c9d3b7f2jobqueue.serial_keyand two indexes, so a project's TM imports run one at a time.
- The first start moves to the database queue unless the install has an explicit
job_queue_backend=memory
setting. On that first start in the default single-process role, jobs the old in-memory queue left queued are
run and jobs it left running are failed with "Interrupted by a server restart.", as a restart always did. If
you plan to use worker processes, start once in the default role before turning them on. - Workflow runs left running by the old version are failed at the first start, as before; paused and queued
runs are untouched. From then on runs resume after a restart. The step that was in flight when a process died
runs again, so its engine calls are made and billed again; completed steps never are. - Shutdown. Workers stop claiming and give running jobs
LOC_TMS_DRAIN_SECONDS(default 8 s) to finish; the
rest are re-queued. Keep the container stop grace above that (about 40 s with worker processes). - Large TMX imports need free disk of about three times the file across the OS temp folder and the data
folder while they run. A reverse proxy that caps request bodies still caps uploads. - Staying single-process needs nothing:
LOC_TMS_ROLEunset is the old layout. To use more cores, set
LOC_TMS_WORKER_PROCESSESin the container (or runpython -m app.workerprocesses yourself) and consider
Postgres; on Postgres keep (web + worker processes) x (LOC_TMS_DB_POOL_SIZE+LOC_TMS_DB_MAX_OVERFLOW+ 2)
undermax_connections(the web process warns when it does not fit). - Moving to Postgres is optional: follow
docs/guides/postgres-migration.md(rehearse on a copy first). - The native module is optional and switched off with
LOCOS_NATIVE=0; build an image without it with
`--build-arg WITH_NATIV...
Localization OS 1.0.0
The first open source release. Localization OS is now licensed under the Apache License 2.0, with documentation
under CC BY 4.0. Contributions are welcome under the Developer Certificate of Origin (see CONTRIBUTING.md).
Highlights
- A complete self-hosted TMS. Configurable translation workflows with quality checks, fix-and-recheck loops and
human review steps; translation memory with locks; glossaries; style guides; content types; a post-editing editor;
reports and a dashboard. - Content in and out. More than 80 file formats returned in the same format and layout. Three project types:
documents, string keys (with a delta API for CI) and projects connected to a source system. - Connectors. 28 connectors, including Airtable, Jira, Strapi, Contentful, HubSpot, WordPress, Shopify, Zendesk,
Confluence, GitHub, GitLab, SharePoint and Google Docs. Translations go back as each system's own language version. - Collaboration. Queries and comments on segments, documents, keys and projects; a reviewer worklist; external
vendors with a signed dispatch and return. - Security and administration. SSO (OIDC, SAML, LDAP / Active Directory), SCIM provisioning, MFA, a
tamper-evident audit chain, the LLM Ledger, GDPR export and erasure, PII redaction including name detection,
encryption at rest, and a durable database job queue. - Built for agents. A full REST API, a headless CLI with more than 480 commands, and an MCP server with 72 tools.
- Engines. Cloud engines (Claude, Gemini, OpenAI, DeepL, Google, Microsoft, Amazon and others), local
self-hosted models, failover and a spend cap. The offline mock engine is the default, so a new install works with
no keys.
Getting started
git clone https://github.com/patois-labs/localization-os.git
cd localization-os
python3 scripts/bootstrap.py # Windows: python scripts\bootstrap.pyThen start it with run.py (see README.md) and open http://127.0.0.1:8000.
Open core
The core in this repository is complete and free. Patois Labs offers paid add-ons for specialist needs: Advanced
Workflows (an agent-based tier with web verification), the Evaluations Lab, semantic translation memory, LLMemory,
Databricks export, and the OpenTelemetry, Prometheus and S3 adapters. Their database tables are part of the core
schema and stay empty without the add-on. What stays free forever is written in STEWARDSHIP.md.
Notes for existing installs
- Requires Python 3.10 or newer.
- Projects created through the API or CLI without an engine now use the install's configured default engine.
- Strict TBX validation needs the official TBX-Basic schema files, which are no longer bundled: fetch them with
python scripts/fetch_tbx_schemas.py. Normal TBX import and export work without them. - A database upgraded from an earlier full edition keeps any add-on data; deleting a project or document cleans up
leftover add-on rows, and the app logs a warning at startup when add-on tables hold data the core cannot manage.