mirego / accent

The first developer-oriented translation tool. True asynchronous flow between translators and your team.
https://www.accent.reviews
BSD 3-Clause "New" or "Revised" License
1.3k stars 97 forks source link

After Adding a new Language and Sync it adds in the Language all Keys twice #349

Closed NewtTheWolf closed 1 year ago

NewtTheWolf commented 1 year ago

master.json:

{
  "hello": "Hello",
  "hello_name": "Hello, {name}!",
  "test": "This is a test"
}

after I add a language (no matter if with or without empty strings) and no matter if I adjust/update the strings directly

I do a sync, the values are always the same as the master.json (even if I have translated the values before) and because of this I have all keys duplicated when I initially add a language.

Without empty strings and without sync: grafik

After the sync: (it doesn't matter how I use the CLI accent sync and accent sync --add-translations) grafik

and if i do an export accent export and i have already added strings in de, the en.json is just empty after a sync it fills with the values from the master, and I have all keys twice as shown in the 2nd picture

simonprev commented 1 year ago

This is a duplicate from: https://github.com/mirego/accent/issues/338

It has been resolved in the latest version 1.14.1 😃