Skip to content

Commit

Permalink
Minor best practices changes, as advised by reviewer from Obsidian
Browse files Browse the repository at this point in the history
  • Loading branch information
leolazou committed Mar 19, 2024
1 parent e4297dd commit 9523274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class MultilingualPlugin extends Plugin {

// Editor command that triggers translation of the name of the current note.
this.addCommand({
id: 'multilingual-editor-translate-name',
id: 'translate-name',
name: this.strings.menus.COMMAND_ACTION,
editorCallback: (editor: Editor, view: MarkdownView) => {
if (view.file) {
Expand Down
2 changes: 1 addition & 1 deletion src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class MultilingualSettingTab extends PluginSettingTab {
let apiKeySetting = new Setting(containerEl);
this.updateApiKeySetting(apiKeySetting);

containerEl.createEl('h3', { 'text': this.plugin.strings.settings.H3_ADVANCED})
new Setting(containerEl).setName(this.plugin.strings.settings.H3_ADVANCED).setHeading()

new Setting(containerEl)
.setName(this.plugin.strings.settings.ADD_ORIGINAL_NAME_NAME)
Expand Down

0 comments on commit 9523274

Please sign in to comment.