Skip to content

Commit

Permalink
Added localization for Expand All / Collapse All verbiage. (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgar authored Feb 7, 2024
1 parent 46c9bbc commit 9bf99fe
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion public/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,5 +703,7 @@
"label": "Menu",
"themeLabel": "Theme"
},
"TIDY5E.ActiveEffectsMarkerTitle": "This item has active effects"
"TIDY5E.ActiveEffectsMarkerTitle": "This item has active effects",
"TIDY5E.Commands.ExpandAll": "Expand All",
"TIDY5E.Commands.CollapseAll": "Collapse All"
}
4 changes: 2 additions & 2 deletions src/sheets/character/tabs/CharacterFeaturesTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
let utilityBarCommands: UtilityToolbarCommandParams[] = [];
$: utilityBarCommands = [
{
title: 'Expand All',
title: localize('TIDY5E.Commands.ExpandAll'),
iconClass: 'fas fa-angles-down',
execute: () => expandAllCollapseAllService.expandAll(),
},
{
title: 'Collapse All',
title: localize('TIDY5E.Commands.CollapseAll'),
iconClass: 'fas fa-angles-up',
execute: () => expandAllCollapseAllService.collapseAll(),
},
Expand Down
4 changes: 2 additions & 2 deletions src/sheets/character/tabs/CharacterInventoryTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
let utilityBarCommands: UtilityToolbarCommandParams[] = [];
$: utilityBarCommands = [
{
title: 'Expand All',
title: localize('TIDY5E.Commands.ExpandAll'),
iconClass: 'fas fa-angles-down',
execute: () => expandAllCollapseAllService.expandAll(),
},
{
title: 'Collapse All',
title: localize('TIDY5E.Commands.CollapseAll'),
iconClass: 'fas fa-angles-up',
execute: () => expandAllCollapseAllService.collapseAll(),
},
Expand Down
4 changes: 2 additions & 2 deletions src/sheets/character/tabs/CharacterSpellbookTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@
let utilityBarCommands: UtilityToolbarCommandParams[] = [];
$: utilityBarCommands = [
{
title: 'Expand All',
title: localize('TIDY5E.Commands.ExpandAll'),
iconClass: 'fas fa-angles-down',
execute: () => expandAllCollapseAllService.expandAll(),
},
{
title: 'Collapse All',
title: localize('TIDY5E.Commands.CollapseAll'),
iconClass: 'fas fa-angles-up',
execute: () => expandAllCollapseAllService.collapseAll(),
},
Expand Down
4 changes: 2 additions & 2 deletions src/sheets/npc/tabs/NpcSpellbookTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
let utilityBarCommands: UtilityToolbarCommandParams[] = [];
$: utilityBarCommands = [
{
title: 'Expand All',
title: localize('TIDY5E.Commands.ExpandAll'),
iconClass: 'fas fa-angles-down',
execute: () => expandAllCollapseAllService.expandAll(),
},
{
title: 'Collapse All',
title: localize('TIDY5E.Commands.CollapseAll'),
iconClass: 'fas fa-angles-up',
execute: () => expandAllCollapseAllService.collapseAll(),
},
Expand Down

0 comments on commit 9bf99fe

Please sign in to comment.