Fix duplicate keys in en.json and add missing periods to user-facing messages

This commit is contained in:
Spicy_Marinara
2026-01-09 12:08:53 +01:00
parent f6733f87a2
commit 0320c3fdd5
3 changed files with 13 additions and 15 deletions
+1 -3
View File
@@ -26,15 +26,13 @@
"template.settingsModal.display.panelPositionOptions.right": "Right Sidebar",
"template.settingsModal.display.panelPositionOptions.left": "Left Sidebar",
"template.settingsModal.display.toggleAutoUpdate": "Auto-update after messages",
"template.settingsModal.display.showUserStats": "Show User Stats",
"template.settingsModal.display.toggleAutoUpdateNote": "Automatically refresh RPG info after each message.",
"template.settingsModal.display.showUserStats": "Show User Stats",
"template.settingsModal.display.showUserStatsNote": "Enable User Stats that track your persona's statistics, mood, attributes, skills, etc.",
"template.settingsModal.display.showInfoBox": "Show Info Box",
"template.settingsModal.display.showInfoBoxNote": "Display location, time, weather, and recent events.",
"template.settingsModal.display.showPresentCharacters": "Show Present Characters",
"template.settingsModal.display.showPresentCharactersNote": "Display character portraits with their current thoughts and status.",
"template.settingsModal.display.toggleAutoUpdate": "Auto-update after messages",
"template.settingsModal.display.toggleAutoUpdateNote": "Automatically refresh RPG info after each message.",
"template.settingsModal.display.narratorMode": "Narrator Mode",
"template.settingsModal.display.narratorModeNote": "Use character card as narrator. Infer characters from context instead of using fixed character references.",
"template.settingsModal.display.showInventory": "Show Inventory",
+3 -3
View File
@@ -46,7 +46,7 @@ export function initPromptsEditor() {
$(document).on('click', '#rpg-prompts-save', function() {
savePrompts();
closePromptsEditor();
toastr.success('Prompts saved successfully');
toastr.success('Prompts saved successfully.');
});
// Cancel button
@@ -62,14 +62,14 @@ export function initPromptsEditor() {
// Restore All button
$(document).on('click', '#rpg-prompts-restore-all', function() {
restoreAllToDefaults();
toastr.success('All prompts restored to defaults');
toastr.success('All prompts restored to defaults.');
});
// Individual restore buttons
$(document).on('click', '.rpg-restore-prompt-btn', function() {
const promptType = $(this).data('prompt');
restorePromptToDefault(promptType);
toastr.success('Prompt restored to default');
toastr.success('Prompt restored to default.');
});
// Close on background click
+9 -9
View File
@@ -113,7 +113,7 @@ export function initTrackerEditor() {
tempConfig = JSON.parse(JSON.stringify(extensionSettings.trackerConfig));
renderEditorUI();
updatePresetUI();
toastr.success(`Switched to preset "${getPreset(presetId)?.name || 'Unknown'}"`);
toastr.success(`Switched to preset "${getPreset(presetId)?.name || 'Unknown'}".`);
}
}
});
@@ -125,7 +125,7 @@ export function initTrackerEditor() {
const newId = createPreset(name.trim());
updatePresetUI();
$('#rpg-preset-select').val(newId);
toastr.success(`Created preset "${name.trim()}"`);
toastr.success(`Created preset "${name.trim()}".`);
}
});
@@ -136,7 +136,7 @@ export function initTrackerEditor() {
setDefaultPreset(currentPresetId);
updatePresetUI();
const preset = getPreset(currentPresetId);
toastr.success(`"${preset?.name || 'Unknown'}" is now the default preset`);
toastr.success(`"${preset?.name || 'Unknown'}" is now the default preset.`);
}
});
@@ -145,7 +145,7 @@ export function initTrackerEditor() {
const currentPresetId = getActivePresetId();
const presets = getPresets();
if (Object.keys(presets).length <= 1) {
toastr.warning('Cannot delete the last preset');
toastr.warning('Cannot delete the last preset.');
return;
}
const preset = getPreset(currentPresetId);
@@ -154,7 +154,7 @@ export function initTrackerEditor() {
tempConfig = JSON.parse(JSON.stringify(extensionSettings.trackerConfig));
renderEditorUI();
updatePresetUI();
toastr.success('Preset deleted');
toastr.success('Preset deleted.');
}
}
});
@@ -163,10 +163,10 @@ export function initTrackerEditor() {
$(document).on('change', '#rpg-preset-associate', function() {
if ($(this).is(':checked')) {
associatePresetWithCurrentEntity();
toastr.info(`This preset will be used for ${getCurrentEntityName()}`);
toastr.info(`This preset will be used for ${getCurrentEntityName()}.`);
} else {
removePresetAssociationForCurrentEntity();
toastr.info(`Preset association removed for ${getCurrentEntityName()}`);
toastr.info(`Preset association removed for ${getCurrentEntityName()}.`);
}
});
}
@@ -518,7 +518,7 @@ function showImportModeDialog(migratedConfig, suggestedName) {
// Re-render the editor UI
renderEditorUI();
toastr.success('Configuration applied to current preset!');
toastr.success('Configuration applied to current preset.');
});
// Import as new preset
@@ -539,7 +539,7 @@ function showImportModeDialog(migratedConfig, suggestedName) {
loadPreset(newPresetId);
renderEditorUI();
updatePresetUI();
toastr.success(`Created new preset: ${presetName}`);
toastr.success(`Created new preset: ${presetName}.`);
}
});