refactor(i18n): rename booklore translation keys to grimmory
- Frontend translations: - rename the remaining `booklore`-named translation keys across the locale JSON files to `grimmory` - keep the translated values intact while aligning the key namespace with the Grimmory branding pass - Angular lookups: - update the affected Transloco lookups in book menus, metadata views, user-management permissions, and KOReader settings - preserve existing compatibility-oriented API and state names that are not translation identifiers - Notes: - this commit also normalizes JSON formatting across the touched locale files because the key rename was applied structurally - the resulting diff is much noisier than the logical change, but the intended behavior change is the translation-key rename itself
This commit is contained in:
+3
-3
@@ -616,7 +616,7 @@ export class BookCardComponent implements OnInit, OnChanges, OnDestroy {
|
||||
}))
|
||||
},
|
||||
{
|
||||
label: this.t.translate('book.card.menu.resetBookloreProgress'),
|
||||
label: this.t.translate('book.card.menu.resetGrimmoryProgress'),
|
||||
icon: 'pi pi-undo',
|
||||
command: () => {
|
||||
this.bookService.resetProgress(this.book.id, ResetProgressTypes.BOOKLORE).subscribe({
|
||||
@@ -624,7 +624,7 @@ export class BookCardComponent implements OnInit, OnChanges, OnDestroy {
|
||||
this.messageService.add({
|
||||
severity: 'success',
|
||||
summary: this.t.translate('book.card.toast.progressResetSummary'),
|
||||
detail: this.t.translate('book.card.toast.progressResetBookloreDetail'),
|
||||
detail: this.t.translate('book.card.toast.progressResetGrimmoryDetail'),
|
||||
life: 1500
|
||||
});
|
||||
},
|
||||
@@ -632,7 +632,7 @@ export class BookCardComponent implements OnInit, OnChanges, OnDestroy {
|
||||
this.messageService.add({
|
||||
severity: 'error',
|
||||
summary: this.t.translate('book.card.toast.progressResetFailedSummary'),
|
||||
detail: this.t.translate('book.card.toast.progressResetBookloreFailedDetail'),
|
||||
detail: this.t.translate('book.card.toast.progressResetGrimmoryFailedDetail'),
|
||||
life: 1500
|
||||
});
|
||||
}
|
||||
|
||||
@@ -358,17 +358,17 @@ export class BookMenuService {
|
||||
|
||||
if (permissions?.canBulkResetBookloreReadProgress) {
|
||||
items.push({
|
||||
label: this.t.translate('book.menuService.menu.resetBookloreProgress'),
|
||||
label: this.t.translate('book.menuService.menu.resetGrimmoryProgress'),
|
||||
icon: 'pi pi-undo',
|
||||
command: () => {
|
||||
this.confirmationService.confirm({
|
||||
message: this.t.translate('book.menuService.confirm.resetBookloreMessage', {count}),
|
||||
message: this.t.translate('book.menuService.confirm.resetGrimmoryMessage', {count}),
|
||||
header: this.t.translate('book.menuService.confirm.resetHeader'),
|
||||
icon: 'pi pi-exclamation-triangle',
|
||||
acceptLabel: this.t.translate('common.yes'),
|
||||
rejectLabel: this.t.translate('common.no'),
|
||||
accept: () => {
|
||||
const loader = this.loadingService.show(this.t.translate('book.menuService.loading.resettingBookloreProgress', {count}));
|
||||
const loader = this.loadingService.show(this.t.translate('book.menuService.loading.resettingGrimmoryProgress', {count}));
|
||||
|
||||
this.bookService.resetProgress(Array.from(selectedBooks), ResetProgressTypes.BOOKLORE)
|
||||
.pipe(finalize(() => this.loadingService.hide(loader)))
|
||||
@@ -377,7 +377,7 @@ export class BookMenuService {
|
||||
this.messageService.add({
|
||||
severity: 'success',
|
||||
summary: this.t.translate('book.menuService.toast.progressResetSummary'),
|
||||
detail: this.t.translate('book.menuService.toast.bookloreProgressResetDetail'),
|
||||
detail: this.t.translate('book.menuService.toast.grimmoryProgressResetDetail'),
|
||||
life: 1500
|
||||
});
|
||||
},
|
||||
|
||||
+1
-1
@@ -401,7 +401,7 @@
|
||||
</div>
|
||||
|
||||
<div class="metadata-item">
|
||||
<span class="metadata-key">{{ t('bookloreProgressLabel') }}</span>
|
||||
<span class="metadata-key">{{ t('grimmoryProgressLabel') }}</span>
|
||||
<span class="metadata-value-group">
|
||||
<app-tag size="3xs" variant="pill" [color]="getProgressColor(getProgressPercent(book))">
|
||||
{{ getProgressPercent(book) !== null ? getProgressPercent(book) + '%' : 'N/A' }}
|
||||
|
||||
+2
-2
@@ -49,7 +49,7 @@
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('koreader.syncWithBooklore') }}</label>
|
||||
<label class="setting-label">{{ t('koreader.syncWithGrimmory') }}</label>
|
||||
<p-toggle-switch
|
||||
name="syncWithBookloreReader"
|
||||
[(ngModel)]="syncWithBookloreReader"
|
||||
@@ -58,7 +58,7 @@
|
||||
[disabled]="!credentialsSaved || !koReaderSyncEnabled">
|
||||
</p-toggle-switch>
|
||||
</div>
|
||||
<p class="setting-description" [innerHTML]="t('koreader.syncWithBookloreDesc')">
|
||||
<p class="setting-description" [innerHTML]="t('koreader.syncWithGrimmoryDesc')">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+2
-2
@@ -117,14 +117,14 @@ export class KoreaderSettingsComponent implements OnInit, OnDestroy {
|
||||
this.messageService.add({
|
||||
severity: 'success',
|
||||
summary: this.t.translate('settingsDevice.koreader.syncUpdated'),
|
||||
detail: enabled ? this.t.translate('settingsDevice.koreader.bookloreReaderEnabled') : this.t.translate('settingsDevice.koreader.bookloreReaderDisabled')
|
||||
detail: enabled ? this.t.translate('settingsDevice.koreader.grimmoryReaderEnabled') : this.t.translate('settingsDevice.koreader.grimmoryReaderDisabled')
|
||||
});
|
||||
},
|
||||
error: () => {
|
||||
this.messageService.add({
|
||||
severity: 'error',
|
||||
summary: this.t.translate('settingsDevice.koreader.syncUpdateFailed'),
|
||||
detail: this.t.translate('settingsDevice.koreader.bookloreReaderError')
|
||||
detail: this.t.translate('settingsDevice.koreader.grimmoryReaderError')
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
+1
-1
@@ -439,7 +439,7 @@
|
||||
<div class="permission-icon-wrapper">
|
||||
<i class="pi pi-history permission-icon"></i>
|
||||
</div>
|
||||
<span class="permission-name">{{ t('perms.bulkResetBooklore') }}</span>
|
||||
<span class="permission-name">{{ t('perms.bulkResetGrimmory') }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="permission-item">
|
||||
|
||||
+1
-1
@@ -384,7 +384,7 @@
|
||||
<div class="permission-items">
|
||||
<div class="permission-item">
|
||||
<p-checkbox [binary]="true" [(ngModel)]="user.permissions.canBulkResetBookloreReadProgress" [disabled]="isPermissionDisabled(user)" inputId="bulkresetbooklore-{{user.id}}"></p-checkbox>
|
||||
<label [for]="'bulkresetbooklore-'+user.id">{{ t('perms.bulkResetBooklore') }}</label>
|
||||
<label [for]="'bulkresetbooklore-'+user.id">{{ t('perms.bulkResetGrimmory') }}</label>
|
||||
</div>
|
||||
<div class="permission-item">
|
||||
<p-checkbox [binary]="true" [(ngModel)]="user.permissions.canBulkResetKoReaderReadProgress" [disabled]="isPermissionDisabled(user)" inputId="bulkresetkoreader-{{user.id}}"></p-checkbox>
|
||||
|
||||
Reference in New Issue
Block a user