mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-09-21 18:17:05 +00:00
fix(i18n): keep activateReason default untranslated per review
Commonlib compares this value against the raw "updated" literal to distinguish automatic activation from a user-requested run, so translating it changes behaviour rather than just the displayed text. Keep the default raw and drop the "updated" catalogue entry; the manually-requested reason stays translated.
This commit is contained in:
@@ -51,11 +51,7 @@ export class ModuleMigration extends AbstractModule<LiveSyncCore> {
|
||||
super(core);
|
||||
}
|
||||
|
||||
async migrateUsingDoctor(
|
||||
skipRebuild: boolean = false,
|
||||
activateReason: string = $msg("updated"),
|
||||
forceRescan = false
|
||||
) {
|
||||
async migrateUsingDoctor(skipRebuild: boolean = false, activateReason = "updated", forceRescan = false) {
|
||||
const { shouldRebuild, shouldRebuildLocal, isModified, settings } = await performDoctorConsultation(
|
||||
{
|
||||
confirm: this.core.confirm,
|
||||
|
||||
Reference in New Issue
Block a user