diff --git a/third_party/i18n/README.chromium b/third_party/i18n/README.chromium index f2ef4d0c99..c8a4506124 100644 --- a/third_party/i18n/README.chromium +++ b/third_party/i18n/README.chromium @@ -16,3 +16,4 @@ Local Modifications: 4. Remove pruneObsoleteLhlMessages() and check collisions step 5. Implement getToken() to avoid requiring the exportVars (liveUIStrings) due to ESM limitation in collectAllStringsInDir() 6. Remove backtick for locked term after converting it to placeholder in ctc.json +7. Enable the scanning of files with .ts extensions diff --git a/third_party/i18n/collect-strings.js b/third_party/i18n/collect-strings.js index 2a89c2d7bc..020deb1a07 100644 --- a/third_party/i18n/collect-strings.js +++ b/third_party/i18n/collect-strings.js @@ -561,7 +561,7 @@ function collectAllStringsInDir(dir) { /** @type {Record} */ const strings = {}; - const globPattern = path.join(path.relative(SRC_ROOT, dir), '/**/*.js'); + const globPattern = path.join(path.relative(SRC_ROOT, dir), '/**/*.{js,ts}'); const files = glob.sync(globPattern, { cwd: SRC_ROOT, ignore: ignoredPathComponents,