processCurrentChange method
Applies, discards changes to current item
Implementation
void processCurrentChange(TranslationApplying applying) {
switch (applying.type) {
case TranslationApplyingType.applyAll:
_applyCurrentChangeFull();
break;
case TranslationApplyingType.discardAll:
_discardCurrentChangeFull();
break;
case TranslationApplyingType.selectTranslations:
final languages = applying.selectedLanguages ?? [];
_applyCurrentChangeForSelectedLanguages(languages);
break;
case TranslationApplyingType.cancel:
return;
}
}