Reland "Localization: creating and integrating i18n module"
This reverts commit 8f012723b79deb820562b06e54bd34600578cef7.
The cause of the i18n not working on debug configuration was that
some files were missing from the grd lists.
- Added i18nImpl, i18n-bundle.js with a similar process to the rest
of the modules.
To make it easy to review:
the first patchset contains the reland with no modifications the >2 patchset
contains the fixes, so if you diff Patchset 1 vs > 1 you should see the fixes
described above.
Change-Id: Iee3767b6afeb1a039be952f787886f94c0752f56
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2376945
Commit-Queue: Vidal Diazleal <[email protected]>
Reviewed-by: Tim van der Lippe <[email protected]>
Reviewed-by: Peter Marshall <[email protected]>
diff --git a/all_devtools_files.gni b/all_devtools_files.gni
index 9d0dbe2..22ad29f 100644
--- a/all_devtools_files.gni
+++ b/all_devtools_files.gni
@@ -142,6 +142,7 @@
"front_end/help/module.json",
"front_end/help/releaseNote.css",
"front_end/host/module.json",
+ "front_end/i18n/module.json",
"front_end/inline_editor/bezierEditor.css",
"front_end/inline_editor/bezierSwatch.css",
"front_end/inline_editor/colorSwatch.css",
@@ -433,8 +434,15 @@
]
generated_lighthouse_locale_files = []
+generated_devtools_locale_files = []
foreach(locale, lighthouse_locale_files) {
generated_lighthouse_locale_files +=
[ "$resources_out_dir/third_party/lighthouse/$locale" ]
}
+
+devtools_locale_files = [ "locales/en-US.json" ]
+
+foreach(locale, devtools_locale_files) {
+ generated_devtools_locale_files += [ "$resources_out_dir/i18n/$locale" ]
+}