Skip to content

Commit

Permalink
refactor: change commands name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed May 6, 2024
1 parent 0c8fed2 commit 036bf70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/commands/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export function refreshOpenedSet(plugin: GithubPublisher) {
};

return {
id: "publisher-refresh-opened-set",
id: "publisher-reload-opened-set",
name: i18next.t("commands.refreshOpenedSet"),
checkCallback: (checking) => {
const file = plugin.app.workspace.getActiveFile();
Expand All @@ -280,7 +280,7 @@ export function refreshOpenedSet(plugin: GithubPublisher) {

export function refreshAllSets(plugin: GithubPublisher) {
return {
id: "publisher-refresh-all-sets",
id: "publisher-reload-all-sets",
name: i18next.t("commands.refreshAllSets"),
checkCallback: (checking) => {
const allSets = plugin.settings.github.otherRepo.filter((repo) => repo.set !== "" || repo.set !== null);
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"title": "Create a link to this note"
},
"publisherDeleteClean": "Purge depublished and deleted files",
"refreshAllSets": "Update all saved sets",
"refreshOpenedSet": "Refresh opened frontmatter",
"refreshAllSets": "(Others repositories): Reload all saved sets",
"refreshOpenedSet": "(Other repositories): Reload opened frontmatter",
"runOtherRepo": {
"noFile": "No file is active or the file is not shared",
"title": "Run command for a repository"
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"title": "Créer un lien vers cette note"
},
"publisherDeleteClean": "Purger les fichiers dépubliés et supprimés",
"refreshAllSets": "Actualiser tous les sets enregistrés",
"refreshOpenedSet": "Actualiser le frontmatter ouvert",
"refreshAllSets": "(Autres dépôts): Recharger tous les sets enregistrés",
"refreshOpenedSet": "(Autres dépôts): Recharger le frontmatter ouvert",
"runOtherRepo": {
"noFile": "Aucun fichier actif, ou le fichier n'est pas partagé.",
"title": "Lancer une commande pour un dépôt"
Expand Down

0 comments on commit 036bf70

Please sign in to comment.