product icon

Paraglide JS

App

Message file formats

Paraglide JS utilizes the inlang SDK, which is responsible for handling importing and exporting of messages.

You can use any inlang plugin to import messages from various file formats.

By default, Paraglide JS uses the inlang-message-format plugin. But, you can use any other plugin that suits your needs. Mixing & matching is also possible.

Explore import/export plugins

All plugins can be found on https://inlang.com/c/plugins. Here are some popular plugins:

Installing a plugin

Add the link of the plugin to the modules in the settings.json file.

Refer to the documentation of the plugin for the linkĀ and installation guide.
{
  "baseLocale": "en",
  "locales": ["en", "de"],
  "modules": [
     "other plugins...",
+    "https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@latest/dist/index.js"
  ]
}

Using multiple plugins

You can use multiple plugins in your project.

{
  "baseLocale": "en",
  "locales": ["en", "de"],
  "modules": [
     "other plugins...",
+     "https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@latest/dist/index.js"
+     "https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@latest/dist/index.js"
  ]
}

Good-to-know: .inlang files

The long-term vision is to use .inlang files directly without depending on external message files and plugins.

We learned the hard way that a binary .inlang file is needed to make localization simple. Unfortunately, git can't store binary files without losing the benefits of version control.

Hence, for now, unpacking .inlang files into directories and creating an in-memory sqlite on each load is the way to go.