tolgee / tolgee-cli

The Tolgee CLI
MIT License
16 stars 11 forks source link

What is the corresponding 'format' value for native json? #104

Closed firmianaQ closed 2 months ago

firmianaQ commented 3 months ago

JSON_TOLGEE is Structured JSON What is the corresponding 'format' value for native json?

stepan662 commented 2 months ago

Hey, what do you mean by native json?

firmianaQ commented 2 months ago

嘿,你说的原生json是什么意思?

Tolgee Native JSON

Flatten JSON

{
  "user-settings.password.save.button": "Save",
  "interpolated_key": "Hello, {name}!",
  "plural_key": "You have {count, plural, one {one message} other {# messages}}."
}
stepan662 commented 2 months ago

Ah, yeah the format is JSON_TOLGEE (the default one). You just need to set structure delimiter to empty string

tolgee pull --delimiter ""

That way it won't structure the json in any way.