Skip to content

Incompatibility of PO function formatter with Translation.io #2374

@andrejcremoznik

Description

@andrejcremoznik

I'm hitting the error

Translation.io service is only compatible with the "po" format. Please update your Lingui configuration accordingly.

From:

if (config.format != "po") {

By having this config:

import { defineConfig } from '@lingui/cli'
import { formatter } from '@lingui/format-po'

export default defineConfig({
  sourceLocale: 'en',
  locales: ['en', 'sl'],
  format: formatter({ lineNumbers: false, printPlaceholdersInComments: false }),
  rootDir: './src',
  catalogs: [
    {
      path: '<rootDir>/locales/{locale}',
      include: ['<rootDir>'],
    },
  ],
  service: {
    name: 'TranslationIO',
    apiKey: '***',
  },
})

Removing the if condition extracts and syncs successfully so this should be an easy fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions