nikaia / translation-sheet

Translating Laravel languages files using a Google Spreadsheet.
GNU General Public License v3.0
291 stars 60 forks source link

[feature] support to sync diff between local and remote #36

Closed ctf0 closed 4 years ago

ctf0 commented 5 years ago

is it possible for the package instead of replacing the current lang files with the ones from the google sheet, to check first for the new items in the current and add them to the array from google b4 replacing.

this way you dont lose the extra work made on the local side when u pull the translation from the sheet.

nbourguig commented 5 years ago

I can't figure a way off the top of my head to do this. This means some kind of a diff system that could run into conflicts which cannot be solved automatically or maybe present the users a choice to override or not when they run the pull command.

Pull request are more than welcome.

ctf0 commented 5 years ago

for now i think the flow could be like