Skip to content

Commit

Permalink
Fix localization for import/export settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Aug 16, 2024
1 parent 573b8e0 commit 900b58c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
}
},
"import-export-menu": {
"import": "Import",
"export": "Export",
"import-settings": "Import Settings",
"export-settings": "Export Settings",
"title": "REDY Settings Importer",
"body": "Upload Settings JSON",
"notifications": {
Expand Down
4 changes: 3 additions & 1 deletion scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ export function renderSettingsConfig(_, html) {
<div class="REDY-button-container">
<button type="button" class="REDY-button-settings" onclick="(async () => {
game.REDY.api.${action}Settings(${action === "export" ? true : ""});
})()">${action} Settings
})()">${game.i18n.localize(
`${MODULE_ID}.module-settings.import-export-menu.${action}-settings`
)} Settings
</button>
</div>`
);
Expand Down

0 comments on commit 900b58c

Please sign in to comment.