@@ -47,31 +47,6 @@ const braveProfileSettingsPartPath = path.resolve(path.join(srcDir, 'brave', 'ap
47
47
const chromiumVRStringsPartPath = path . resolve ( path . join ( srcDir , 'chrome' , 'app' , 'vr_strings.grdp' ) )
48
48
const braveVRStringsPartPath = path . resolve ( path . join ( srcDir , 'brave' , 'app' , 'vr_strings.grdp' ) )
49
49
50
- // extensions_resources.grd and any of its parts files that we track localization for in transifex
51
- // There are no XTB files for this.
52
- const chromiumExtensionsResourcesPath = path . resolve ( path . join ( srcDir , 'chrome' , 'browser' , 'resources' , 'md_extensions' , 'extensions_resources.grd' ) )
53
- const braveExtensionsResourcesPath = path . resolve ( path . join ( srcDir , 'brave' , 'browser' , 'resources' , 'md_extensions' , 'extensions_resources.grd' ) )
54
-
55
- // settings_resources.grd and any of its parts files that we track localization for in transifex
56
- // There are no XTB files for this.
57
- const chromiumSettingsResourcesPath = path . resolve ( path . join ( srcDir , 'chrome' , 'browser' , 'resources' , 'settings' , 'settings_resources.grd' ) )
58
- const braveSettingsResourcesPath = path . resolve ( path . join ( srcDir , 'brave' , 'browser' , 'resources' , 'settings' , 'settings_resources.grd' ) )
59
-
60
- // browser_resources.grd and any of its parts files that we track localization for in transifex
61
- // We currently do not need to track media_router_resources.grdp
62
- // There are no XTB files for this.
63
- const chromiumBrowserResourcesPath = path . resolve ( path . join ( srcDir , 'chrome' , 'browser' , 'browser_resources.grd' ) )
64
- const braveBrowserResourcesPath = path . resolve ( path . join ( srcDir , 'brave' , 'browser' , 'browser_resources.grd' ) )
65
-
66
- // The following are not generated files but still need to be tracked so they get sent to transifex
67
- // These xtb files don't need to be copied anywhere.
68
- // brave_generated_resources.grd maps to brave/app/resources/brave_generated_resources*.xtb,
69
- // brave_component_resources.grd maps to brave/components/resources/strings/brave_components_resources*.xtb
70
- // messages.json localization is handled inside of brave-extension.
71
- const braveSpecificGeneratedResourcesPath = path . resolve ( path . join ( srcDir , 'brave' , 'app' , 'brave_generated_resources.grd' ) )
72
- const braveComponentsResourcesPath = path . resolve ( path . join ( srcDir , 'brave' , 'components' , 'resources' , 'brave_components_resources.grd' ) )
73
- const braveExtensionMessagesPath = path . resolve ( path . join ( srcDir , 'brave' , 'vendor' , 'brave-extension' , 'app' , '_locales' , 'en_US' , 'messages.json' ) )
74
-
75
50
// When adding new grd or grd files, never add a grdp part path without a parent grd path.
76
51
// Group them with a leading and trailing newline to keep this file organized.
77
52
@@ -89,25 +64,18 @@ const chromiumToAutoGeneratedBraveMapping = {
89
64
[ chromiumPrintingStringsPartPath ] : bravePrintingStringsPartPath ,
90
65
[ chromiumProfileSettingsPartPath ] : braveProfileSettingsPartPath ,
91
66
[ chromiumVRStringsPartPath ] : braveVRStringsPartPath ,
92
- [ chromiumExtensionsResourcesPath ] : braveExtensionsResourcesPath ,
93
- [ chromiumSettingsResourcesPath ] : braveSettingsResourcesPath ,
94
- [ chromiumBrowserResourcesPath ] : braveBrowserResourcesPath
95
67
}
96
68
97
69
// Same as with chromiumToAutoGeneratedBraveMapping but maps in the opposite direction
98
70
module . exports . autoGeneratedBraveToChromiumMapping = Object . keys ( chromiumToAutoGeneratedBraveMapping )
99
71
. reduce ( ( obj , key ) => ( { ...obj , [ chromiumToAutoGeneratedBraveMapping [ key ] ] : key } ) , { } )
100
72
101
- // All paths which are not generated
102
- module . exports . braveNonGeneratedPaths = [
103
- //braveSpecificGeneratedResourcesPath, braveComponentsResourcesPath, braveExtensionMessagesPath
104
- ]
105
73
// All paths which are generated
106
74
module . exports . braveAutoGeneratedPaths = Object . values ( chromiumToAutoGeneratedBraveMapping )
107
75
108
76
// Brave specific strings and Chromium mapped Brave strings will be here.
109
77
// But you only need to add the Brave specific strings manually here.
110
- module . exports . allBravePaths = module . exports . braveNonGeneratedPaths . concat ( module . exports . braveAutoGeneratedPaths )
78
+ module . exports . allBravePaths = module . exports . braveAutoGeneratedPaths
111
79
112
80
// Get all GRD and JSON paths whether they are generatd or not
113
81
// Push and pull scripts for l10n use this.
0 commit comments