Skip to content
Langnostic
Esc
↑↓navigate↵open⌘Jpreview
On this page

Introduction

Translate localization files and documentation with your own AI provider.

Langnostic is a CLI for translating localization files and documentation before you build or deploy your application. Configure source files, target locales, and format plugins, then run langnostic translate.

Translations stay in your repository. You choose the AI provider and review the generated changes using your existing development workflow.

Use cases

  • Fill missing translations in application message catalogs.
  • Translate Markdown/MDX documentation and revisit changed source blocks.
  • Run translation as a reviewable step in a development or release workflow.

Change detection depends on the plugin. FormatJS fills missing message IDs and removes obsolete IDs; it does not detect source text edits under an existing ID. MDX tracks source block and frontmatter hashes. Read the change-detection details before choosing a workflow.

How it fits into your application

An i18n library such as React Intl or i18next loads localized content and displays it in your application. Langnostic translates files for that workflow; it does not provide runtime localization APIs, extract strings from application source, or translate a page after it loads.

You still need an extraction or authoring process that produces supported source files, a compatible i18n runtime, and a review step for translations and syntax.

Supported content

The separately installed official plugins support:

  • FormatJS JSON: Flat message-ID maps containing strings or FormatJS descriptors with defaultMessage and description.
  • Markdown/MDX: Document blocks and translatable frontmatter fields, with a registry beside each source file for incremental translation.

The CLI works independently of your application framework. Your i18n runtime must be able to consume the generated file schema. Nested JSON catalogs, XML, YAML, TOML, and other localization formats need a suitable custom plugin; they are not automatically supported because they are text files.

See Using plugins for shared setup, or the FormatJS and Markdown / MDX references for format-specific options and behavior.

Next steps

  • Why Langnostic: Decide whether this workflow fits your project.
  • Quick start: Configure Langnostic and run your first translation.
  • Features: Understand supported behavior and limitations.
  • Workflows: Review translations and integrate them into CI.
  • Using plugins: Install plugins and configure translation groups.
  • Comparisons: Compare file-based translation with hosted localization workflows.

References

  • CLI: Commands, flags, diagnostics, and exit statuses.
  • Configuration: Fields, defaults, overrides, and path mappings.
  • Plugin API: Types, lifecycle hooks, and a complete custom plugin.
  • Utilities: Translation helpers and atomic file writes.

Plugins

  • FormatJS: Flat JSON catalogs, descriptors, and ID-based tracking.
  • Markdown / MDX: Document blocks, frontmatter, and translation registries.

Licensing

Langnostic is source-available under the PolyForm Noncommercial License 1.0.0. Noncommercial use and the other uses expressly permitted by that license are free. Commercial use outside those permissions requires a paid business license covering langnostic, @langnostic/plugin-formatjs, and @langnostic/plugin-mdx together. Contact us for terms and pricing. Eligibility depends on the use, including for open-source projects.

The same license covers the CLI, official plugins, shared TypeScript configuration, and first-party examples and documentation. Each product package includes the full license text in LICENSE. Langnostic’s software license does not impose licensing terms on your input content or translations.

AI provider usage is a separate cost. Keeping generated files in your repository does not require a hosted translation store, but translation requests can incur charges from your provider.

Was this page helpful?