@@ -19,6 +19,7 @@ import { Toolbox, IToolboxCommand } from "./tool-box";
1919import { FieldDefinition } from "./data" ;
2020import { DataTreeItem } from "./data-treeitem" ;
2121import { BaseTreeItem } from "./base-tree-item" ;
22+ import { Strings } from "./strings" ;
2223import * as Shared from "./shared" ;
2324
2425export class CardDesigner {
@@ -883,7 +884,7 @@ export class CardDesigner {
883884 let toolPaletteHost = document . createElement ( "div" ) ;
884885 toolPaletteHost . className = "acd-dockedPane" ;
885886
886- this . _toolPaletteToolbox = new Toolbox ( "toolPalette" , "Card Elements" ) ;
887+ this . _toolPaletteToolbox = new Toolbox ( "toolPalette" , Strings . toolboxes . toolPalette . title ) ;
887888 this . _toolPaletteToolbox . content = toolPaletteHost ;
888889
889890 let toolPalettePanel = new SidePanel (
@@ -896,10 +897,10 @@ export class CardDesigner {
896897 toolPalettePanel . attachTo ( document . getElementById ( "toolPalettePanel" ) ) ;
897898
898899 // JSON editors panel
899- this . _cardEditorToolbox = new Toolbox ( "cardEditor" , "Card Payload Editor" ) ;
900+ this . _cardEditorToolbox = new Toolbox ( "cardEditor" , Strings . toolboxes . cardEditor . title ) ;
900901 this . _cardEditorToolbox . content = document . createElement ( "div" ) ;
901902 this . _cardEditorToolbox . content . style . padding = "8px" ;
902- this . _cardEditorToolbox . content . innerText = "Loading editor..." ;
903+ this . _cardEditorToolbox . content . innerText = Strings . loadingEditor ;
903904
904905 this . _jsonEditorsPanel = new SidePanel (
905906 "jsonEditorPanel" ,
@@ -918,10 +919,10 @@ export class CardDesigner {
918919 this . _jsonEditorsPanel . addToolbox ( this . _cardEditorToolbox ) ;
919920
920921 if ( Shared . GlobalSettings . previewFeaturesEnabled ) {
921- this . _sampleDataEditorToolbox = new Toolbox ( "sampleDataEditor" , "Sample Data Editor" ) ;
922+ this . _sampleDataEditorToolbox = new Toolbox ( "sampleDataEditor" , Strings . toolboxes . sampleDataEditor . title ) ;
922923 this . _sampleDataEditorToolbox . content = document . createElement ( "div" ) ;
923924 this . _sampleDataEditorToolbox . content . style . padding = "8px" ;
924- this . _sampleDataEditorToolbox . content . innerText = "Loading editor..." ;
925+ this . _sampleDataEditorToolbox . content . innerText = Strings . loadingEditor ;
925926 this . _sampleDataEditorToolbox . commands = [
926927 {
927928 title : "Copy the structure of this data into the Data Structure toolbox" ,
@@ -941,7 +942,7 @@ export class CardDesigner {
941942 let propertySheetHost = document . createElement ( "div" ) ;
942943 propertySheetHost . className = "acd-propertySheet-host" ;
943944
944- this . _propertySheetToolbox = new Toolbox ( "propertySheet" , "Element Properties" ) ;
945+ this . _propertySheetToolbox = new Toolbox ( "propertySheet" , Strings . toolboxes . propertySheet . title ) ;
945946 this . _propertySheetToolbox . content = propertySheetHost ;
946947
947948 let propertySheetPanel = new SidePanel (
@@ -959,7 +960,7 @@ export class CardDesigner {
959960 let treeViewHost = document . createElement ( "div" ) ;
960961 treeViewHost . className = "acd-treeView-host" ;
961962
962- this . _treeViewToolbox = new Toolbox ( "treeView" , "Card Structure" ) ;
963+ this . _treeViewToolbox = new Toolbox ( "treeView" , Strings . toolboxes . cardStructure . title ) ;
963964 this . _treeViewToolbox . content = treeViewHost ;
964965
965966 let treeViewPanel = new SidePanel (
@@ -975,7 +976,7 @@ export class CardDesigner {
975976 let dataExplorerHost = document . createElement ( "div" ) ;
976977 dataExplorerHost . className = "acd-treeView-host" ;
977978
978- this . _dataToolbox = new Toolbox ( "data" , "Data Structure" ) ;
979+ this . _dataToolbox = new Toolbox ( "data" , Strings . toolboxes . dataStructure . title ) ;
979980 this . _dataToolbox . content = dataExplorerHost ;
980981
981982 treeViewPanel . addToolbox ( this . _dataToolbox ) ;
0 commit comments