opral / inlang-sdk

0 stars 0 forks source link

`Error opening inlang project at ./project.inlang Error: Plugins for loadMessages (found: 1) and saveMessages plugins (found: 1) must not coexist with import (found: 1) or export (found: 1)` #201

Open samuelstroschein opened 4 days ago

samuelstroschein commented 4 days ago

Problem

The inlang message format v3 contains both load/save messages and import/export files because most users do not have a pinned plugin version. Any update to the inlang message format (and other plugins) will break usage if the old load/save messages are defined.

Proposal

  1. Allow defining both old load and save messages apis
  2. If import/export files is defined, ignore load/save messages
samuelstroschein commented 4 days ago

@felix.haeberle @martin.lysk1 i assume you ran into this too? agree with the proposal?

felixhaeberle commented 4 days ago

seems reasonable 👍 did not ran into this problem because only worked with i18next source files (json) and i18next old plugin.