Multilingual CKAN metadata with ckanext-fluent

Multilingual CKAN metadata with ckanext-fluent stores titles, descriptions and tags in each language your portal publishes. This page covers how the presets work, how the API returns those values, and what to confirm before you build.

On this page

Multilingual CKAN metadata for portals that publish in more than one language

ckanext-fluent is for portals that must store each dataset's title, description and tags in more than one language inside the same record. It adds multilingual field presets on top of ckanext-scheming, so those fields can hold a value per language and the CKAN API returns the values keyed by language. Teams usually need this when a public mandate requires bilingual or multilingual publication, or when a shared catalog serves several regions that each expect metadata in their own language. The question to settle first is whether users and consumers should find every dataset under one record with all its languages, or whether the portal can tolerate parallel records.

A single-language schema with separate translated copies is enough in several common cases. It suits a portal that translates only a handful of high-value datasets, or one where a translated summary page carries most of the message. It also fits teams whose translators work on their own release cycle and can accept a second record per dataset. The trade-off is manual synchronization: every change to a title, a licence or a publication date has to be applied to each copy, and search, facets and reports will see each copy as its own dataset. Before choosing, decide which language is the source of truth, who approves translations and how closely the copies must match the original.

Start with the languages and the fields. List the languages the mandate or region requires, choose a default language for fallback and search, and mark which scheming fields need translation, such as titles, descriptions, tags and possibly resource names. Keep interface translation in a separate workstream, since CKAN's interface translation changes menus and labels for visitors, while ckanext-fluent stores the metadata values themselves. Then test the full path: enter a dataset in each language, check the dataset page, the search results and the API response, and confirm that harvesters, DCAT exports and downstream reuse read the keyed values correctly. Confirm the preset names and the supported CKAN versions in the ckanext-fluent documentation before you finalize the schema.

Validation runs at save time, so your checks belong at each consumer

The path starts in the dataset form, where ckanext-scheming renders each multilingual field with the fluent presets so editors enter one value per language. CKAN validates those values when the dataset is saved and stores them in its database with the language-keyed structure intact. The package API then returns the same language-keyed values to every consumer. Portal templates, harvesters and DCAT output each read that structure separately, so a missing language or an empty fallback can surface in three places. Save-time validation confirms the form input only, so check the API response and each consumer's output against your own rules.

One multilingual field from the dataset form to the consumers that read it.

How the multilingual CKAN metadata API returns language-keyed values

A multilingual field does not come back as one string. When a field is built with ckanext-fluent, the API returns an object keyed by language code, so a title can arrive as entries for en, fr and other codes instead of a single value. Any client that reads that field as a flat string will fail or display raw JSON the first time a dataset has translations. Before you enable multilingual fields, list every consumer that calls package_show or the search endpoints, including harvesters, DCAT exports, dashboards, mobile apps and internal scripts. Check whether each one can read a language-keyed object. Editors will see the same form they knew before, so this change is easy to miss unless you plan for it.

Clients choose the language themselves. Each consumer should read the key it needs, such as en for an English-language portal, and handle the case where that key is absent. A dataset saved with only a French title has no en entry unless someone entered one, so the client must decide whether to fall back to another language, show the default language value or show nothing. Confirm with your ckanext-fluent release whether the extension fills missing languages on output or leaves them empty, because the answer changes how every consumer must be written. Also confirm how empty strings and untranslated tags are represented, since a blank entry and a missing key can look identical once rendered.

Test with a sample dataset before real records go in. On a staging portal, create one dataset with a field completed in two languages, one field completed in a single language and one tag set with translations. Call package_show and the dataset search endpoint, then save the raw JSON from each response. Run every downstream consumer against that sample and record what it displays for each case. Repeat the test after each CKAN minor upgrade or extension update, because the exact response shape depends on the extension release. Confirm the shape for your release in the ckanext-fluent documentation or repository before writing client code against it, and keep the sample responses under version control so later changes are visible.

Configuration options for multilingual fields and when each fits

This table compares the choices that shape a multilingual build: which fields carry translations, which languages are offered, how strictly each language is required, and how far to go with custom validation. Read each row as a decision, then check what it changes for editors, API consumers and harvesters. The main takeaway is that choices made early become data your harvesters and API consumers depend on, so settle languages and fallback rules before the first dataset is entered.

DecisionWhen it fitsWhat it changes
Which fields become multilingualTitle and description when readers in each language need the same dataset. Tags only when search terms differ by language.Editors enter each language in its own input. The API returns language-keyed values, so clients must select a language code.
Languages offeredA short, fixed list agreed with content owners and translators before the build starts.Each added language adds an input per field and a key in every response. Removing one later means deciding what happens to stored values.
Translation required or optional per languageRequired for the primary language. Optional for others when translations may lag behind publication.Required rules block saving until a value exists. Optional rules allow gaps that readers and harvesters will see.
Default and fallback languageA default where most readers work, plus a fallback for display when a translation is missing.Decides whether a missing translation shows default text or nothing. Confirm how the target release returns missing languages in the API.
Fluent presets or custom validatorsPresets fit standard text and tag fields. Custom validators fit stricter rules that the presets do not express.Presets need no code. Custom validators need an extension, tests and review at every CKAN upgrade.
Harvesting and DCAT outputPortals that harvest from or publish to other catalogs in several languages.Harvesters and RDF output must map language-keyed values to target fields. Confirm the mapping with ckanext-dcat before relying on it.

Field translation and interface translation are separate jobs

Translating the CKAN interface and translating dataset metadata are two separate jobs, owned by different people and stored in different places. The interface job covers the menus, buttons, form labels and system messages that CKAN renders itself. It runs on CKAN's own translation files and on the locale settings in the site configuration, such as ckan.locale_default and ckan.locales_offered. Most of those strings come from CKAN's upstream translation files, but a custom theme or template adds strings of its own that someone must translate. The platform team owns this job: it chooses the locales, maintains theme text and tests the interface after each upgrade.

The metadata job covers the title, description and tags that a publisher enters for each dataset. With ckanext-fluent, those fields are stored once per language and returned as language-keyed values, so the content is kept in the dataset record itself. Publishers or dedicated translators own the content, while the portal team owns which fields are multilingual, which languages each field must carry and who reviews a new translation before it goes live. A French description added by a publisher changes no menu label, and a translation file cannot supply a dataset title.

The two jobs meet on the same page. The breadcrumb, menu, search box and buttons follow the language the visitor selects, while the title and description follow the values stored for the dataset. A French visitor may therefore see French labels around an English title if no French value exists, and the fallback behavior for missing languages is something to confirm in your environment. Before launch, confirm which locales your CKAN version ships and which ones your theme has translated, because coverage varies by release and by extension. Then open a sample dataset in each supported language, and log any interface string that still appears in English as a theme task.

Setting up multilingual CKAN metadata in order

This sequence takes a CKAN portal from a single-language dataset form to one that stores titles, descriptions and tags in several languages and returns them through the API. Each step ends with a check you can run, so problems surface in staging before any live dataset carries language-keyed values. The order matters because the schema and locale settings decide what the API returns.

  1. Confirm CKAN and ckanext-scheming versions

    Record the CKAN version your portal runs and the ckanext-scheming release that supports it. Check the CKAN release policy to confirm the minor version is still supported, and apply the latest patch of that minor before adding anything new. Confirm the ckanext-fluent release you plan to use also declares compatibility with that CKAN and scheming pair, using its README and repository. Your platform team runs these checks. The step is done when you have a written version matrix, and ckan --version on staging matches it.

  2. Install ckanext-fluent in staging first

    Build a staging environment that mirrors production's CKAN version, Solr, PostgreSQL and Redis. Install ckanext-fluent and ckanext-scheming into the same Python environment as CKAN, then add both to ckan.plugins in the staging configuration. Restart the web and background worker processes, and keep production untouched until the later checks pass. The step is done when CKAN starts without plugin errors in the logs and the existing dataset form still saves a test dataset.

  3. Define languages and multilingual fields in the schema

    Edit the ckanext-scheming schema file to list the languages your portal collects and mark which fields hold language-keyed values, typically the title, description and tags. Use the fluent field presets that ckanext-fluent provides for these types, and confirm the exact preset names in its documentation for your release. Keep the schema in version control so staging and production load the same file. The step is done when the dataset form shows a separate input for each language on the title and description, and CKAN loads the schema at startup without errors.

  4. Configure default and offered locales

    Set the portal's default locale and the list of offered locales in the CKAN configuration, using ckan.locale_default and ckan.locales_offered. Align these with the languages in the schema so the interface languages and the dataset languages match. Record which language is the fallback for a dataset missing a translation, because templates will show that value when a translation is absent. The step is done when switching the interface language in the browser changes the interface text and leaves the stored dataset values unchanged.

  5. Create test datasets in every language

    Create at least one test dataset in staging and enter a title and description in every language in the schema, plus tags where your schema makes them multilingual. Include one dataset with a translation left out on purpose and labeled as a fallback test case, so you can see the fallback behavior. Use these datasets in all later checks. The step is done when the dataset is saved with every language filled in for each multilingual field, and the stored values match what you entered in each language.

  6. Check API output and search results

    Call the Action API for the test datasets and confirm each multilingual field returns an object keyed by every configured language code, not only the language used at entry. Then search for a translated title in a non-default language through the web search and package_search, and confirm the test dataset appears. Repeat the search with a term from a description and with a tag if tags are multilingual. Rebuild the search index if results are missing, and check any harvester or DCAT export that reads these fields. The step is done when every language key is present and each translated term returns the test dataset.

  7. Check template fallback, then promote to production

    View the test dataset pages in each offered language and confirm the title, description and tags render in that language. Open the fallback test dataset in a language it lacks, and confirm the page shows the configured fallback value in every field. Record the results, then repeat the same checks in production using a dataset your team can remove, and keep a documented rollback path for the plugin and schema changes. The step is done when every page check passes in staging and the production repeat matches the staging results.

Security and operational risks of multilingual metadata

Multilingual metadata creates risks that single-language portals never meet: sensitive text entered in a language nobody reviews, translations that fall out of step with the source, and search and backup behavior that depends on language-keyed values. Each card names one risk and a check your operations team can run before or after a change.

Sensitive text in one language

Editors often complete the default language first, and nothing in the metadata stops a note about an unpublished contract, a personal name or an internal ticket from appearing in a language that no reviewer reads. Treat every configured language as published output. Check this by sampling recent edits in each language with a reviewer who reads that language, and confirm with the extension's documentation whether it offers any content screening at all.

Translation drift after edits

A change to a title or description in one language leaves the other language values untouched, so the portal can show a translated summary that describes an older version of the dataset. This is silent drift, and the list views give no sign of it. Check a sample of datasets through the API in each language, compare each translated value with the current source text, and record which fields were edited without their translations.

Search after schema changes

Adding, renaming or removing a multilingual field changes what the search index holds for datasets saved before the change, so a dataset can appear in one language and go missing in another. Before any schema change reaches production, run a known-title search in each language on a staging copy. Confirm with the vendor's CKAN and Solr documentation for your version whether a reindex is required after the change.

Backups and language-keyed restores

A restore can bring back the dataset record while losing some language keys, and the portal will look healthy until someone reads the French or Spanish text. A restore is proven only when each language value matches production. Restore a recent backup into a separate environment, pick datasets with several translated fields, and compare every language through the API. Also confirm that DataStore tables, which sit in their own PostgreSQL database, are restored to the same point in time.

DataStore docs

Translator access and roles

A translator who needs to edit one language should not be able to change publication status, core fields or values in other languages. Test this with a dedicated account in the organization's editor role, attempt to change each language field and the visibility setting, and compare the results with the role definitions in your CKAN version. Keep a written record of who can view draft and private datasets in every language, and review that list after each staffing change.

Limits to confirm before you commit, by environment

Start with the pair the rest of the design depends on: your CKAN release and the extensions that load into it. CKAN 2.12.0 was released on August 26, 2026, and the release policy describes which minor and patch releases still receive fixes. Minor releases may include backwards-incompatible changes, so the 2.12.0 release notes are the first document to read against your language presets.

  • Supported releases: Confirm which patch of your current minor version you run, since outdated patch releases lose support once a newer one is out.
  • Extension matrix: Check ckanext-fluent and ckanext-scheming against your CKAN release in their own documentation. The ckanext-dcat repository lists support for CKAN 2.10 and 2.11, so confirm its status on your release before relying on DCAT output.
  • Release note impact: Search the 2.12.0 notes for changes to form handling, validators and templates that your language presets depend on.
  • Runtime stack: Match Python, PostgreSQL, Solr and Redis to the install-from-source requirements, which list Python 3.10 or newer, PostgreSQL 12 or newer, and Solr 9 (recommended) or Solr 8.
  • Upgrade order: If the portal runs an older release, rehearse the upgrade with the multilingual schema already in place.

Check each row against a test environment built from the same packages or images you plan to run in production.

What multilingual CKAN metadata work costs and what it needs from your team

What drives the effort and cost of multilingual CKAN metadata work?

Effort rises with the number of languages, the number of multilingual fields, and how much existing work has to change. Each language adds values that editors enter, validators check, and templates and API consumers must handle. Each multilingual field, such as title, description or tags, adds a form control and an output path to test. Existing schema and integrations matter a great deal: a portal with harvesters, DCAT output or a custom search index needs each integration checked against language-keyed values. The translation workflow, including who supplies translations, whether machine translation is allowed, and how reviews are recorded, and the depth of testing also set the size of the job. Ask for a quote that lists each driver separately, with the count you gave us for it.

How long does multilingual CKAN metadata work usually take?

Duration depends mostly on the same drivers as cost, plus how quickly your team makes decisions. Work usually moves in phases: confirm the language list and field inventory, configure the schema and presets in a development environment, adapt templates and integrations, then test with real editors and API consumers before a production change. Teams that already run ckanext-scheming with a stable schema tend to move faster than teams designing the schema and the language policy at the same time. Delays most often come from waiting on translators, unresolved fallback rules for missing languages, and integrations that were not inventoried early. The timeline belongs in the written scope, after the phases and the client decisions are listed.

What does the client team need to provide for multilingual CKAN work?

Your team provides the decisions and materials the build depends on before it starts:

  • The list of languages, with a named default language and the fallback order used when a translation is missing.
  • Translators or a translation vendor, plus a reviewer who approves wording in each language.
  • Sample metadata in each language, taken from datasets you actually publish, so validation and display can be tested.
  • Non-production CKAN environments, test accounts and access to any connected catalog or identity system.

A product owner or metadata lead who can answer schema questions quickly prevents most rework, because unanswered field definitions stall both the build and the tests. Confirm each item with the scope before work starts.

Can an in-house team build multilingual CKAN metadata alone?

Yes, a team with CKAN and ckanext-scheming experience can build this in house. The skills needed are a developer who can write schema files and small plugin code, someone who can change templates and search indexing, and a tester who checks each language in the user interface and the API. The harder part is often the decision work: agreeing the language policy, translation governance and which metadata must be translated at all. Teams without recent CKAN upgrade experience may find that extension compatibility checks take longer than expected. An outside partner is useful when you want an independent review of the design, or when the work must finish against written deliverables. Compare your team's available capacity with the written scope before deciding.

How does a fixed-scope quote follow from a written scope?

A fixed-scope quote is built from the written scope, which lists the deliverables, the languages and fields in scope, the integrations to change, the testing to perform and the timeline. DeployOpen does not publish a price list, so the quote follows from that document. Agree the scope in writing before work starts, including what sits outside it, such as whether translation itself is included, content migration, or changes to unrelated extensions. Ask the quote to show each deliverable on its own line, the assumptions behind it (for example, the number of languages and fields), what your team provides, and how a change in any driver is priced and approved.

Should we buy ongoing support after multilingual metadata goes live?

It depends on whether your team has clear owners for the recurring work. Multilingual metadata adds ongoing tasks: adding languages, adding fields, upgrading extensions and checking the API after each CKAN patch or minor release. Decide who adds a language, who reviews its translations and who runs regression checks after upgrades. A one-time build with good documentation can run in house if those owners exist. DeployOpen offers ongoing support, upgrades and continuous testing as retainers. Ask any partner to state in the quote which items are one-time and which recur, and what response coverage the retainer includes.

How DeployOpen works on this

DeployOpen treats multilingual metadata as a data design decision that reaches past the entry form. We scope which fields carry language variants, which languages the portal publishes, and how each value is validated, exported and read by downstream users. The work is built inside your CKAN infrastructure, tested against the API responses your consumers depend on, and handed over with documentation your team can maintain.

How we scope

  • Field inventory listing each title, description and tag field that needs language variants, with its current and target languages.
  • Decision on which fields stay single-language, such as identifiers, codes and pick-list values, so they remain stable across languages.
  • Written scope naming the languages, the schema file, the fluent presets and the API consumers that read the output.

How we build

  • Schema and ckanext-fluent preset changes, built on ckanext-scheming and kept in version control with the rest of the portal code.
  • Test plan that checks language-keyed values in API responses for each field, including languages with missing translations.
  • Interface translation files reviewed as their own task, since interface strings and metadata fields are separate work.

How we hand over

  • Documented field list with each language variant, its validation rules and the exact API shape consumers should expect.
  • Runbook for adding a language, including schema updates, search index checks and a review of existing records.
  • Handover session with your CKAN administrators and the developers who maintain the portal's extensions and API consumers.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped in writing.
  • Retesting of language-keyed API output after each CKAN upgrade, since minor releases may include backwards-incompatible changes.
  • Added languages handled as scoped changes, with the schema, validation and API tests updated together.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.