Commit d3db593
authored
fix(build): limit locales to valid files when using the --all-lang option (#4486)
This change updates the code path that is invoked when the build is run
using the `--all-lang` option. When assembling the list of locale files
from the `/locales` directory, this change only includes files that
satisfy _both_ of the following criteria:
- Does not start with `_`
- Ends with `.json`
This effectively excludes `_template.json` and `README.md`, and may
proactively filter out future utility files that do not follow the
typical locale-file naming standard.
Closes: #44851 parent 6699ee4 commit d3db593
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
0 commit comments